[Python-ideas] relaxing keyword usage restrictions

Stephen J. Turnbull stephen at xemacs.org
Wed Sep 7 03:15:32 CEST 2011


Barry Warsaw writes:

 > >>> setattr(f, 'class', 'evil')

 > You just have to use "weird" syntax to set and get the values of those
 > attributes. ;)  So much for consistency.

I don't see this as anything but an optimization of dict.  You could
easily encapsulate the syntax above in a class, no?



More information about the Python-ideas mailing list