[Python-Dev] Module properties for C modules
Benjamin Peterson
musiccomposition at gmail.com
Wed Apr 30 23:22:51 CEST 2008
On Wed, Apr 30, 2008 at 4:17 PM, Christian Heimes <lists at cheimes.de> 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 at 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
More information about the Python-Dev
mailing list