◐ Shell
clean mode source ↗

bpo-40170: Convert PyObject_CheckBuffer() macro to a function by vstinner · Pull Request #19376 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

vstinner

merged 1 commit into

python:masterfrom

vstinner:check_buffer

Apr 7, 2020

Merged

Conversation

@vstinner

@vstinner vstinner commented

Apr 4, 2020

edited by bedevere-bot

Loading

Copy link Copy Markdown

Member

Convert PyObject_CheckBuffer() macro to a function to hide
implementation details: the macro accessed directly
PyTypeObject.tp_as_buffer field.

https://bugs.python.org/issue40170

@vstinner

vstinner commented

Apr 5, 2020

Copy link Copy Markdown

Member Author

PyObject_CheckBuffer() is used for example by:

  • PyBytes_FromObject()
  • PyMemoryView_FromObject()
  • PyUnicode_FSDecoder()
  • PyObject_CopyData()
  • w_complex_object() of marshal.c
Convert PyObject_CheckBuffer() macro to a function to hide
implementation details: the macro accessed directly the
PyTypeObject.tp_as_buffer member.

@vstinner vstinner merged commit ef5c615 into python:master

Apr 7, 2020

@vstinner vstinner deleted the check_buffer branch

April 7, 2020 23:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner @the-knights-who-say-ni @bedevere-bot