Message188660
| 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. |
|