[Python-Dev] Module properties for C modules
Guido van Rossum
guido at python.org
Wed Apr 30 23:41:42 CEST 2008
On Wed, Apr 30, 2008 at 2:17 PM, Christian Heimes <lists at cheimes.de> wrote:
> 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.
>
> How do you like the general idea of properties for builtin modules. That
> is modules written in C like the sys module.
But wouldn't this mean that those properties would no longer be
available in the module's __dict__?
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list