Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4267
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <Marc.Gronle@gmx.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'extending': 0.07; 'python': 0.07; 'everybody,': 0.09; 'from:addr:gmx.de': 0.09; "module's": 0.09; 'subclass': 0.09; 'subject:python': 0.15; 'defined': 0.15; 'message-id:@gmx.net': 0.16; 'subject:non': 0.16; 'subtype': 0.16; 'class,': 0.16; 'received:213.165.64': 0.16; 'marc': 0.19; 'received:gmx.net': 0.19; 'example': 0.24; 'received:213.165': 0.25; 'external': 0.29; 'grateful': 0.29; 'class': 0.29; 'does': 0.31; 'however,': 0.31; 'import': 0.32; 'to:addr:python-list': 0.32; 'embedding': 0.35; 'case,': 0.36; 'realize': 0.39; 'to:addr:python.org': 0.39; 'subject: (': 0.39; 'how': 0.39; 'would': 0.40; 'url:net': 0.62; 'response.': 0.67; 'jetzt': 0.84; 'subject:class': 0.84; 'mobil': 0.91 |
| Content-Type | text/plain; charset="utf-8" |
| Date | Thu, 28 Apr 2011 23:16:20 +0200 |
| From | "Marc Gronle" <Marc.Gronle@gmx.de> |
| MIME-Version | 1.0 |
| Subject | Fwd: subclassing an extension (non built-in) class / type in python 3.2 |
| To | python-list@python.org |
| X-Authenticated | #7914367 |
| X-Flags | 0001 |
| X-Mailer | WWW-Mail 6100 (Global Message Exchange) |
| X-Priority | 3 |
| X-Provags-ID | V01U2FsdGVkX1919SliUx51Hcw2n4+23LBulQexg+4up7J0a2Lmjn hqTNR00kA0nDxi2t64++XW/XlplTJbn0ybqQ== |
| Content-Transfer-Encoding | 8bit |
| X-GMX-UID | Fu+MfD4fbUk7KknwSmgnsJ5sZ2hlN0qN |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| 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.961.1304025384.9059.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1304025384 news.xs4all.nl 81481 [::ffff:82.94.164.166]:37599 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4267 |
Show key headers only | View raw
Hello everybody, I read in the extending and embedding documentation of python 3, that it is easily possible to subclass or subtype a built-in type. However, in my case, I would like to subclass a class, defined in a external python-file (py), which I can import in my C++-application and access the class by the module's dictionary. Does anybody have an example or just a hint, how to successfully realize this type of inheritance? I will be grateful for every response. Cheers Marc -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Fwd: subclassing an extension (non built-in) class / type in python 3.2 "Marc Gronle" <Marc.Gronle@gmx.de> - 2011-04-28 23:16 +0200
csiph-web