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/029888.html below:

[Python-Dev] metaclass insanity

[Python-Dev] metaclass insanity [Python-Dev] metaclass insanityGuido 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/)



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