Have you tried apipkg?
On Sep 25, 2014 6:22 AM, "Tennessee Leeuwenburg"
I love it. +1 :).
On 25 September 2014 20:16, Thomas Gläßle
wrote: Nathaniel Smith wrote on 09/25/2014 07:07 AM:
What I'd really like is for module attribute lookup to start supporting the descriptor protocol. This would be super-easy to work with and fast (you only pay the extra overhead for the attributes which have been hooked). -n
I'm not sure, I picture this the same way you intended, but I believe supporting the descriptor protocol is too confusing and breaks too much code in many cases. You wouldn't normally expect to execute x.__get__, etc on module attribute access if you are just trying to export some object x that happens to be a descriptor.
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
-- -------------------------------------------------- Tennessee Leeuwenburg http://myownhat.blogspot.com/ "Don't believe everything you think"
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/