[Python-ideas] Modules could behave like new-style objects

Zac Burns zac256 at gmail.com
Thu Apr 2 23:57:44 CEST 2009


Thanks Aahz,

I did a search for previous threads but all the keywords and
combinations of keywords I could think of showed an overwhelming
amount of unrelated things. Does anyone know where I can find this
information?

--
Zachary Burns
(407)590-4814
Aim - Zac256FL
Production Engineer
Zindagi Games



On Thu, Apr 2, 2009 at 2:23 PM, Aahz <aahz at pythoncraft.com> wrote:
> 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
>> module).
>
> 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
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



More information about the Python-ideas mailing list