[Python-ideas] descriptors outside of classes

Eric Snow ericsnowcurrently at gmail.com
Wed Mar 30 22:59:24 CEST 2011

I was just thinking along those same lines.  Sounds like twisted already
does it.  Does it amount to using a custom __import__?


On Wed, Mar 30, 2011 at 2:51 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:

> Eric Snow wrote:
>> I am sure there is some convoluted way to make it work, but it would not
>> nearly be worth it for what we would get out of it.
> What would be useful from time to time is a more straightforward
> way of getting a module that's based on a subclass of the
> built-in module class. While that's currently possible, it
> requires some not-entirely-obvious hackery.
> --
> Greg
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110330/4e07f541/attachment.html>

More information about the Python-ideas mailing list