[Python-ideas] Modules could behave like new-style objects
aahz at pythoncraft.com
Thu Apr 2 23:23:41 CEST 2009
On Thu, Apr 02, 2009, Zac Burns wrote:
> I would like to see modules behave more like new-style objects. One
> should be able to add properties, descriptors, __getattr__, and such.
> One common use case for me is implementing wrapper modules that
> populate dynamically (like the ctypes.windll object - except as a
Guido can speak up for himself, but in the past he's been pretty negative
about this idea; you may want to hunt up previous threads.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it." --Brian W. Kernighan
More information about the Python-ideas