[Python-Dev] metaclass insanity
Guido van Rossum
guido@python.org
Mon, 04 Nov 2002 17:38:01 -0500
> > Can someone provide a reason why you'd want to use nested classes?
>
> "Namespaces are one honking great idea -- let's do more of those!"
Yeah, but I simply don't think that a Python class is a good mechanism
for grouping arbitrary names together. We've got packages and modules
for that.
> > I've never felt this need myself. What are the motivations?
>
> My people want it so they can mirror the structure of their C++ code
> with their Python wrappers, among other things.
This sounds unpythonic, and confirms my expectation that this is an
example of trying to write C++ in any language. :-)
--Guido van Rossum (home page: http://www.python.org/~guido/)