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

gh-97016: Convert PyBytes_AS_STRING() to function #97017

Closed
wants to merge 1 commit into from
Closed

gh-97016: Convert PyBytes_AS_STRING() to function #97017

wants to merge 1 commit into from

Commits on Sep 22, 2022

  1. gh-97016: Convert PyBytes_AS_STRING() to function

    Convert the following static inline functions to regular functions:
    
    * PyByteArray_AS_STRING()
    * PyByteArray_GET_SIZE()
    * PyBytes_AS_STRING()
    * PyBytes_GET_SIZE()
    
    Remove the _PyByteArray_empty_string variable. It was excluded from
    the limited C API.
    
    In bytesobject.c and bytearrayobject.c, add static inline functions
    and use them for best performance:
    
    * _PyByteArray_AS_STRING()
    * _PyByteArray_GET_SIZE()
    * _PyBytes_AS_STRING()
    * _PyBytes_GET_SIZE()
    vstinner committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    72346a4 View commit details
    Browse the repository at this point in the history