Author: Antonio Cuni <[email protected]> Branch: cpyext-avoid-roundtrip Changeset: r92774:718a91452806 Date: 2017-10-16 11:42 +0200 http://bitbucket.org/pypy/pypy/changeset/718a91452806/
Log: add a comment about a potential issue diff --git a/pypy/module/cpyext/tupleobject.py b/pypy/module/cpyext/tupleobject.py --- a/pypy/module/cpyext/tupleobject.py +++ b/pypy/module/cpyext/tupleobject.py @@ -27,6 +27,10 @@ ## Then the macro PyTuple_GET_ITEM can be implemented like CPython. ## +# CCC: we have a problem in the branch: some of the functions defined in C, +# like PyTuple_New, might call PyErr_*, but since these are implemented in +# RPython, they are not GIL-safe. We need to think about it :( + PyTupleObjectStruct = lltype.ForwardReference() PyTupleObject = lltype.Ptr(PyTupleObjectStruct) ObjectItems = rffi.CArray(PyObject) _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
