On Wed, Apr 30, 2008 at 4:17 PM, Christian Heimes <[EMAIL PROTECTED]> wrote: > Hello Python Dev! > > As you all know modules don't support properties. However several places > and modules could use properties on module level. For example the > sys.py3k_warnings flag could be implemented with a property. Other flags > in the sys module could benefit from read only properties, too.
Big +1. Frankly, the get/set methods of sys are quite ugly! > > How do you like the general idea of properties for builtin modules. That > is modules written in C like the sys module. Good idea. Perhaps eventually they could be extended to Python, but they are definitely useful in C now. How about passing a list of getsets to PyImport_InitModule(5)? > > Christian > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/musiccomposition%40gmail.com > -- Cheers, Benjamin Peterson _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com