]> granicus.if.org Git - python/commit
bpo-36710: Add tstate parameter in ceval.c (GH-13547)
authorVictor Stinner <vstinner@redhat.com>
Fri, 24 May 2019 15:01:38 +0000 (17:01 +0200)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 15:01:38 +0000 (17:01 +0200)
commit438a12dd9d85f463c0bb7bf1505cd87b98b98170
tree98c86409bb8fdfca0c58588f2b9475d25579057e
parent13d4e6a4a090031f8214e058ed3c8fd47767e05f
bpo-36710: Add tstate parameter in ceval.c (GH-13547)

* Fix a possible reference leak in _PyErr_Print() if exception
  is NULL.
* PyErr_BadInternalCall(): replace PyErr_Format() with _PyErr_SetString().
* Add pycore_pyerrors.h header file.
* New functions:

  * _PyErr_Clear()
  * _PyErr_Fetch()
  * _PyErr_Print()
  * _PyErr_Restore()
  * _PyErr_SetObject()
  * _PyErr_SetString()

* Add 'tstate' parameter to _PyEval_AddPendingCall().
Include/internal/pycore_ceval.h
Include/internal/pycore_pyerrors.h [new file with mode: 0644]
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_pymem.h
Makefile.pre.in
Modules/signalmodule.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/ceval.c
Python/errors.c
Python/pythonrun.c