> > 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