]> granicus.if.org Git - python/commit
bpo-35081: Cleanup pystate.c and pystate.h (GH-10240)
authorVictor Stinner <vstinner@redhat.com>
Tue, 30 Oct 2018 14:13:17 +0000 (15:13 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 14:13:17 +0000 (15:13 +0100)
commit9204fb8623896cc5f68ae350784ee25e8a7b2184
tree2f36a952c747107714dc3ce700eeeabb6f4e6560
parent3c09dca4b5de9fe8c8756251d02f49cf093b88c1
bpo-35081: Cleanup pystate.c and pystate.h (GH-10240)

* Remove _PyThreadState_Current
* Replace GET_TSTATE() with PyThreadState_GET()
* Replace GET_INTERP_STATE() with _PyInterpreterState_GET_UNSAFE()
* Replace direct access to _PyThreadState_Current with
  PyThreadState_GET()
* Replace _PyThreadState_Current with
  _PyRuntime.gilstate.tstate_current
* Rename SET_TSTATE() to _PyThreadState_SET(), name more
  consistent with _PyThreadState_GET()
* Update outdated comments
Include/pystate.h
Objects/dictobject.c
Python/ceval.c
Python/pystate.c