[Python-Dev] metaclass insanity

Martin v. Loewis martin@v.loewis.de
04 Nov 2002 23:00:48 +0100

Guido van Rossum <guido@python.org> writes:

> In the case of nested classes, a possible solution might be for
> X.Y.__name__ to be "X.Y" rather than plain "Y".  Then a simple change
> to pickle (or to getattr :-) could allow the correct unpickling.

I'd rather expect that X.Y.__module__ is "Foo.X".