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

Document the error return of PyLong_As* APIs. #5396

Merged
merged 3 commits into from
Jan 29, 2018

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Jan 28, 2018

A frequent Python C API error is neglecting to check the return value
and call PyErr_Occurred().

A frequent Python C API error is neglecting to check the return value
and PyErr_Occurred().
@gpshead gpshead self-assigned this Jan 28, 2018
@gpshead gpshead merged commit f5b04a3 into python:master Jan 29, 2018
@miss-islington
Copy link
Contributor

Thanks @gpshead for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6.
🐍🍒⛏🤖

@bedevere-bot
Copy link

@gpshead: Please replace # with GH- in the commit message next time. Thanks!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 29, 2018
Document the error return of PyLong_As* APIs.

A frequent Python C API usage error is neglecting to check the return
value and/or PyErr_Occurred().
(cherry picked from commit f5b04a3)
@bedevere-bot
Copy link

GH-5404 is a backport of this pull request to the 3.6 branch.

@gpshead gpshead deleted the doc_aslong branch January 29, 2018 01:50
gpshead pushed a commit that referenced this pull request Jan 29, 2018
Document the error return of PyLong_As* APIs.

A frequent Python C API usage error is neglecting to check the return
value and/or PyErr_Occurred().
(cherry picked from commit f5b04a3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants