[Python-Dev] metaclass insanity
Walter 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