#51 better handling of reserved words: runtime support

PyXB 0.7.3
closed
None
fixed
Content model
major
PyXB 0.7.2
defect
2009-09-06
2009-09-06
No

Can't do anything about Python reserved words, but class members like "content" and "value" that are part of the PyXB reserved word list should use properties, even for function values, to prevent accidents like:

   element.content = my_new_element

when it should have been:

   element.content_ = my_new_element

Discussion

  • Peter A. Bigot

    Peter A. Bigot - 2009-09-06
    • status changed from new to accepted
    • milestone changed from PyXB 0.7.4 to PyXB 0.7.3
     
  • Peter A. Bigot

    Peter A. Bigot - 2009-09-06
    • status changed from accepted to closed
    • resolution set to fixed

    Done by overloading setattr in _TypeBinding_mixin to raise a BindingError upon any attempt to set a reserved name.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks