Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-39882: Py_FatalError() logs the function name #18819

Merged
merged 3 commits into from
Mar 6, 2020
Merged

bpo-39882: Py_FatalError() logs the function name #18819

merged 3 commits into from
Mar 6, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 6, 2020

The Py_FatalError() function is replaced with a macro which logs
automatically the name of the current function, unless the
Py_LIMITED_API macro is defined.

Changes:

  • Add _Py_FatalErrorFunc() function.
  • Remove the function name from the message of Py_FatalError() calls
    which included the function name.
  • Update tests.

https://bugs.python.org/issue39882

The Py_FatalError() function is replaced with a macro which logs
automatically the name of the current function, unless the
Py_LIMITED_API macro is defined.

Changes:

* Add _Py_FatalErrorFunc() function.
* Remove the function name from the message of Py_FatalError() calls
  which included the function name.
* Update tests.
@vstinner vstinner merged commit 9e5d30c into python:master Mar 6, 2020
@vstinner vstinner deleted the fatal_error_func branch March 6, 2020 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants