Skip to content

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

Closed
@asottile

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

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