Message177272
PyWeakref_GET_OBJECT is also potentially dangerous: since the refcount is not incremented, it's very possible that the GC collects it.
The only safe operation after PyWeakref_GET_OBJECT is to Py_XINCREF the result. Should we provide a PyWeakRef_LockObject()? |
|
Date |
User |
Action |
Args |
2012-12-10 10:13:13 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, jcea, pitrou, christian.heimes, asvetlov, daniel.urban, python-dev, eltoder |
2012-12-10 10:13:13 | amaury.forgeotdarc | set | messageid: <1355134393.26.0.0609033862182.issue16602@psf.upfronthosting.co.za> |
2012-12-10 10:13:13 | amaury.forgeotdarc | link | issue16602 messages |
2012-12-10 10:13:13 | amaury.forgeotdarc | create | |
|