Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #57195
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <demianbrecht@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.061 |
| X-Spam-Evidence | '*H*': 0.88; '*S*': 0.00; 'interpreter': 0.05; 'debugging': 0.07; 'url:github': 0.09; '(starting': 0.16; 'metaclass': 0.16; 'subclass': 0.16; 'thanks,': 0.17; 'all,': 0.19; 'trying': 0.19; "i've": 0.25; 'point': 0.28; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; '350': 0.31; 'classes': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'level': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'side': 0.67; 'insight': 0.68; 'sound': 0.68; 'hoping': 0.75; 'pipeline': 0.91; 'subject:Class': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=MHM+4f2nEziPIdS4HEE3zzGU5ytB1r4H6Bsb/nkLR2E=; b=nLjO1zh9+WrSDOpK2Ko5Ww0tK8ti8WQbVcdsOYuMK6eHUiLTdPbFceptq5DfPtYFuD 7t0bHYXScttyt8vtlgUeqracfnurrrP7clXbZalnjQbugHcXrIqzoZrSN5J4eBN30M7V STZId5DqZomUxoxjmMssptJmr48NW3eXh5sI5WR8OHZAxvytJOieuve+gHd5z9NzXdbR Vl1i3oW156aNfwu0RkiX/+1wVOHLWCSjqwJBDzDkiSqabIoeGt541Kg+T1MJyTjFkrtK Xt785WZp2fXthvFB4nhLl6vfcWnCO34wKOLk7s1L8ppR+zunIpnV5tty4uq8KrUGGLnA 56Xg== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.98.105 with SMTP id eh9mr10279227wib.56.1382368105859; Mon, 21 Oct 2013 08:08:25 -0700 (PDT) |
| Date | Mon, 21 Oct 2013 08:08:25 -0700 |
| Subject | Class construction |
| From | Demian Brecht <demianbrecht@gmail.com> |
| To | Python <python-list@python.org> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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 | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1312.1382368108.18130.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1382368108 news.xs4all.nl 15985 [2001:888:2000:d::a6]:46504 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:57195 |
Show key headers only | View raw
Hi all,
I'm trying to wrap my head around how classes are constructed at the
interpreter level (as a side effect of digging into metaclasses) and
I'm hoping to have my investigation either validated or ridiculed ;)
The pipeline that I've figured through some gdb debugging (starting at
type_call):
+ type_call
+ is there a metaclass for this object?
+ return metaclass->tp_new
+ roughly 350 LOC constructing the type
+ is object is not a subclass of type?
+ return object
+ call obj->tp_init
Does that sound correct? My C/gdb skills are horribly rusty at this
point so expert insight would help :)
Thanks,
--
Demian Brecht
http://demianbrecht.github.com
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Class construction Demian Brecht <demianbrecht@gmail.com> - 2013-10-21 08:08 -0700
csiph-web