Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39756
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'referring': 0.07; 'python': 0.09; 'bool': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'builtins.': 0.16; 'message- id:@post.gmane.org': 0.16; 'range,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'certainly': 0.17; 'sorry,': 0.22; 'cheers,': 0.23; 'header:User-Agent:1': 0.26; 'forgot': 0.27; 'header:X-Complaints-To:1': 0.28; 'received:132': 0.29; "i'm": 0.29; 'classes': 0.30; 'docs': 0.33; 'to:addr:python- list': 0.33; 'version': 0.34; 'list': 0.35; 'received:org': 0.36; 'but': 0.36; 'charset:us-ascii': 0.36; 'ones': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> |
| Subject | Re: subclassable types |
| Date | Sun, 24 Feb 2013 16:38:53 +0000 (UTC) |
| References | <loom.20130222T101853-588@post.gmane.org> <kg8qcn$km8$1@ger.gmane.org> <loom.20130224T171121-218@post.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | sea.gmane.org |
| User-Agent | Loom/3.14 (http://gmane.org/) |
| X-Loom-IP | 132.230.1.31 (Mozilla/5.0 (Windows NT 6.1; rv:18.0) Gecko/20100101 Firefox/18.0) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2413.1361723952.2939.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1361723952 news.xs4all.nl 6948 [2001:888:2000:d::a6]:59502 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:39756 |
Show key headers only | View raw
> 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