[Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Oct 10 18:44:55 EDT 2016
More information about the Python-Dev mailing list
Mon Oct 10 18:44:55 EDT 2016
- Previous message (by thread): [Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?
- Next message (by thread): [Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Random832 wrote: > Or is this a special kind of lock that you > can "assert isn't locked" without locking it for yourself, and > INCREF/DECREF does so? I don't think that would work. It might be unlocked at the moment you test it, but someone might lock it between then and the following INCREF/DECREF. Locking is like pregnancy -- you can't have just a little bit of it. :-) -- Greg
- Previous message (by thread): [Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?
- Next message (by thread): [Python-Dev] PyWeakref_GetObject() borrows its reference from... whom?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list