]> granicus.if.org Git - python/commit
/* An extension mechanism to store arbitrary additional per-thread state.
authorGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 20:18:25 +0000 (20:18 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 20:18:25 +0000 (20:18 +0000)
commitede0439cd8e53c50df8be78bef564fd585dc171d
tree44613b43727a729588bc90425eaab25485aa71da
parentc45cf029380f1b95a9d208d7c63843ce8317ad7d
/* An extension mechanism to store arbitrary additional per-thread state.
   PyThreadState_GetDict() returns a dictionary that can be used to hold such
   state; the caller should pick a unique key and store its state there.  If
   PyThreadState_GetDict() returns NULL, an exception has been raised (most
   likely MemoryError) and the caller should pass on the exception. */

PyObject *
PyThreadState_GetDict()
Python/pystate.c