Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12400
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <johnmohagan@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.275 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.48; '*S*': 0.03; 'subject:reference': 0.09; "haven't": 0.20; 'sender:addr:gmail.com': 0.25; 'pass': 0.29; 'class': 0.30; 'subject:?': 0.31; 'to:addr:python-list': 0.33; 'reference': 0.35; 'object': 0.35; 'charset:us-ascii': 0.36; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'subject:from': 0.40; 'header:Message- Id:1': 0.61; 'john': 0.62; 'subject:Get': 0.71; 'subject:class': 0.84; 'received:home': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=j3/SsaxfSwXGI3BbWGzayICnPUebk6wJWJXMgBdF4Yo=; b=nIxS6+MTzkDTva5lMu2rLUu23Xzw+GS1GoQZjGTeHN4y+H0rwvZ3atBw+TlgznydvU 9/agwxLJaqBNSFl+vg6Jpnch9uh4n6Y7osmHOqqbA4G4mVfLr++gZBixUmPFk8T2b7tV 2+ni7CYbDWrCs/+rr4p9AthoQNC0pJjiNcZuM= |
| Sender | "John O'Hagan" <johnmohagan@gmail.com> |
| Date | Sun, 28 Aug 2011 14:00:24 +1000 |
| From | John O'Hagan <research@johnohagan.com> |
| To | python-list@python.org |
| Subject | Get reference to parent class from subclass? |
| X-Mailer | Sylpheed 3.2.0beta2 (GTK+ 2.24.4; x86_64-pc-linux-gnu) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-Mailman-Approved-At | Mon, 29 Aug 2011 13:04:23 +0200 |
| 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.542.1314615864.27778.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1314615864 news.xs4all.nl 2469 [2001:888:2000:d::a6]:52402 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:12400 |
Show key headers only | View raw
class P():
pass
class C(P):
pass
Can I get P from C?
IOW, can I get a reference to the object P from the object C? This should be obvious one way or the other, but I haven't been able to find the answer.
Regards,
John
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Get reference to parent class from subclass? John O'Hagan <research@johnohagan.com> - 2011-08-28 14:00 +1000
csiph-web