[Python-Dev] Set the namespace free!
Terry Reedy
tjreedy at udel.edu
Thu Jul 22 23:51:08 CEST 2010
On 7/22/2010 2:04 PM, John Nagle wrote:
>> From: Bartosz Tarnowski<bartosz-tarnowski at zlotniki.pl>
>> Python has more and more reserved words over time
...
>> What should I do then, when the attribute is a reserver word?
I am going to be a grinch and note that this is strictly a usage
question with no development implications. It therefore is off topic
here and should have been asked and answered on python-list or the
mirrored newsgroup.
> That's a misuse of attributes. When you need objects with
> unconstrained fields, inherit them from "dict", and write
>
> print(elem['param'])
Right ;-)
--
Terry Jan Reedy
More information about the Python-Dev
mailing list