Antoine Pitrou added the comment: > The only safe operation after PyWeakref_GET_OBJECT is to Py_XINCREF the > result. Should we provide a PyWeakRef_LockObject()?
There's already a warning in the docs about that. I don't think an additional function is useful here. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16602> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com