Guido van Rossum <guido@python.org> writes: > Can someone provide a reason why you'd want to use nested classes? > I've never felt this need myself. What are the motivations? > Nested classes provide a nice way (IMO) to write metaclasses and keep them near the classes using them: class X(object): class __metaclass__(type): .... Thomas
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