ahartikainen/pyinfraformat

Setters and getters more intuitive

Opened this issue · 1 comments

I think setters and getters could be more intuitive for manipulating data.

   hole.fileheader['KJ'] 
   hole.header.XY["X"]
   hole.header.XY["Y"]
   etc..

And it should be ensured that it handels pointers and copys correctly.

hole = holes[0]
hole.fileheader['KJ']  = "system"

changes all holes

Why holes[0] defines behavior for other holes?

Do we have set __len__, __iter__ and other ones?