> I'm with Raymond. Metaclasses that don't derive from 'type' can > create objects that are neither fish nor flesh. After thinking this through some more, I have to retract that. After all, even classic classes and their instances are derive from object: >>> class C: pass >>> isinstance(C, object) True >>> >>> isinstance(C(), object) True What makes a classic class is one very specific metaclass. What makes a classic instance is a class using that very specific metaclass. Everything else is a new-style class. Perhaps an exception should be made for Zope's ExtensionClasses, which are not classic classes but old-style "extension types", but they will disappear in the future and there's really nothing else like them. --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