A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-May/078991.html below:

[Python-Dev] Module properties for C modules

[Python-Dev] Module properties for C modules [Python-Dev] Module properties for C modulesChristian Heimes lists at cheimes.de
Thu May 1 22:20:56 CEST 2008
Guido van Rossum schrieb:
> On Thu, May 1, 2008 at 12:32 PM, Christian Heimes <lists at cheimes.de> wrote:
>> Guido van Rossum schrieb:
>>
>>> But wouldn't this mean that those properties would no longer be
>>  > available in the module's __dict__?
>>
>>  Correct. Module properties would behave exactly like instance
>>  properties. They don't appear on the instance's __dict__ attribute, too.
>>
>>  By the way I was astonished that the vars() function dones't show
>>  properties but dir() does list them.
> 
> "Astonished" sounds stronger than you probably meant it. :-)

Slightly :)

What's your opinion on the module properties idea? Do you still like it
although the property values won't show up in __dict__?

Christian


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4