Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39756
| From | Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> |
|---|---|
| Subject | Re: subclassable types |
| Date | 2013-02-24 16:38 +0000 |
| References | <loom.20130222T101853-588@post.gmane.org> <kg8qcn$km8$1@ger.gmane.org> <loom.20130224T171121-218@post.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2413.1361723952.2939.python-list@python.org> (permalink) |
> The complete list of types classes that *cannot* be subclassed is: > > <class 'builtin_function_or_method'> > <class 'code'> > <class 'frame'> > <class 'function'> > <class 'generator'> > <class 'getset_descriptor'> > <class 'function'> > <class 'mappingproxy'> > <class 'member_descriptor'> > <class 'method'> > <class 'traceback'> > <class 'range'> > <class 'memoryview'> > <class 'slice'> > <class 'bool'> > > of these range, memoryview, slice and bool are the only ones in builtins. I am sorry, but again I forgot to say which Python version I'm referring to: I used Python 3.3 :) Having such a list in the docs somewhere, is certainly a good idea. Cheers, Wolfgang
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: subclassable types Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2013-02-24 16:38 +0000
csiph-web