mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-102500: Implement PEP 688 (#102521)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
parent
b17d32c114
commit
04f6733275
26 changed files with 640 additions and 15 deletions
17
Include/internal/pycore_memoryobject.h
Normal file
17
Include/internal/pycore_memoryobject.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef Py_INTERNAL_MEMORYOBJECT_H
|
||||
#define Py_INTERNAL_MEMORYOBJECT_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef Py_BUILD_CORE
|
||||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
PyObject *
|
||||
PyMemoryView_FromObjectAndFlags(PyObject *v, int flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* !Py_INTERNAL_MEMORYOBJECT_H */
|
Loading…
Add table
Add a link
Reference in a new issue