This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, jsafrane, pitrou
Date 2013-05-07.14:51:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1115063899.22799378.1367938263675.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <1367935744.99.0.720767274392.issue17922@psf.upfronthosting.co.za>
Content
> (gdb) p *((PyWeakReference*)self)->wr_object
> $9 = {_ob_next = 0x0, _ob_prev = 0x0, ob_refcnt = 0, ob_type = 0x0}
> 
> If I am reading Py_TYPE right, Py_TYPE(self->wr_object) must be 0
> (=NULL).

Well, no, it should *always* be non-NULL (and it's a strong reference,
so it should be a pointer to a valid PyTypeObject).
There's nothing in the CPython source code which sets Py_TYPE(something)
(i.e. something->ob_type) to NULL.
History
Date User Action Args
2013-05-07 14:51:10pitrousetrecipients: + pitrou, benjamin.peterson, jsafrane
2013-05-07 14:51:10pitroulinkissue17922 messages
2013-05-07 14:51:10pitroucreate