[Python-ideas] Extend module objects to support properties

Larry Hastings larry at hastings.org
Wed Jan 30 02:06:45 CET 2013



Properties are a wonderful facility.  But they only work on conventional 
objects.  Specifically, they *don't* work on module objects.  It would 
be nice to extend module objects so properties worked there too.

For example, Victor Stinner's currently proposed PEP 433 adds two new 
methods to the sys module: sys.getdefaultcloexc() and 
sys.setdefaultcloexc().  What are we, Java?  Surely this would be much 
nicer as a property, sys.defaultcloexc.


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130129/bbe2b2ab/attachment.html>


More information about the Python-ideas mailing list