Skip to content

PyMemoryView_FromMemory is part of stable ABI but the flag constants (PyBUF_READ, etc.) are not #98680

Description

@asottile

Feature or enhancement

I'd rather not write:

#ifndef PyBUF_READ
#define PyBUF_READ 0x100
#endif

and instead be able to rely on these even in stable abi mode

relevant error message:

whatever.c:1:30: error: ‘PyBUF_READ’ undeclared (first use in this function)

Linked PRs

Activity

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

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions