Message177272
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, asvetlov, christian.heimes, daniel.urban, eltoder, jcea, pitrou, python-dev |
| Date |
2012年12月10日.10:13:13 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1355134393.26.0.0609033862182.issue16602@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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()? |
|