diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-28 18:17:03 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-28 18:17:03 (GMT) |
commit | 1a9a9d543327397396827642895410183f8902d5 (patch) | |
tree | 56ded308662fe5b0a410edef287cb23133ccc574 /Include/object.h | |
parent | 64a38c0eb5b7fd6e4ee5f3e912cff9eda8dd19af (diff) | |
download | cpython-1a9a9d543327397396827642895410183f8902d5.zip cpython-1a9a9d543327397396827642895410183f8902d5.tar.gz cpython-1a9a9d543327397396827642895410183f8902d5.tar.bz2 |
Issue #1868: Eliminate subtle timing issues in thread-local objects by
getting rid of the cached copy of thread-local attribute dictionary.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 6e744bc..ef73a21 100644 --- a/Include/object.h +++ b/Include/object.h @@ -448,6 +448,14 @@ PyAPI_FUNC(int) PyCallable_Check(PyObject *); PyAPI_FUNC(void) PyObject_ClearWeakRefs(PyObject *); +/* Same as PyObject_Generic{Get,Set}Attr, but passing the attributes + dict as the last parameter. */ +PyAPI_FUNC(PyObject *) +_PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *); +PyAPI_FUNC(int) +_PyObject_GenericSetAttrWithDict(PyObject *, PyObject *, + PyObject *, PyObject *); + /* PyObject_Dir(obj) acts like Python builtins.dir(obj), returning a list of strings. PyObject_Dir(NULL) is like builtins.dir(), |