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/2002-November/029976.html below:

[Python-Dev] metaclass insanity

[Python-Dev] metaclass insanity [Python-Dev] metaclass insanityWalter Dörwald walter@livinglogic.de
Thu, 07 Nov 2002 17:39:07 +0100
Guido van Rossum wrote:
>>What I wonder is how this will work with classes that are defined
>>outside but assigned inside an outer class, i.e.:
>>
>>class NotInner:
>>    pass
>>
>>class Outer:
>>    Inner = NotInner
>>
>>Will this set NotInner.__name__ to "Outer.NotInner" or not?
> 
> __name__ should be set to reflect the lexical position of the class
> statement.  What you do with assignment is your business.
> 
> Thanks for any work you can do towards implementing this!

I'm not sure I'm up to the task, as I've never messed with
the Python parser before.

Bye,
    Walter Dörwald




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