[Python-Dev] metaclass insanity
Guido van Rossum
guido@python.org
Wed, 06 Nov 2002 13:42:59 -0500
> 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!
--Guido van Rossum (home page: http://www.python.org/~guido/)