Issue #10293: Remove obsolete field in the PyMemoryView structure, · pythoncapi/cpython@aeb6cee · GitHub
Skip to content

Commit aeb6cee

Browse files
committed
Issue python#10293: Remove obsolete field in the PyMemoryView structure,
unused undocumented value PyBUF_SHADOW, and strangely-looking code in PyMemoryView_GetContiguous.
1 parent 8f2e07b commit aeb6cee

5 files changed

Lines changed: 6 additions & 47 deletions

File tree

Include/memoryobject.h

Lines changed: 0 additions & 1 deletion

Include/object.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
189189

190190
#define PyBUF_READ 0x100
191191
#define PyBUF_WRITE 0x200
192-
#define PyBUF_SHADOW 0x400
193192

194193
/* End buffer interface */
195194

Lib/test/test_sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def get_gen(): yield 1
759759
check(int(PyLong_BASE**2-1), size(vh) + 2*self.longdigit)
760760
check(int(PyLong_BASE**2), size(vh) + 3*self.longdigit)
761761
# memory
762-
check(memoryview(b''), size(h + 'P PP2P2i7P'))
762+
check(memoryview(b''), size(h + 'PP2P2i7P'))
763763
# module
764764
check(unittest, size(h + '3P'))
765765
# None

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ What's New in Python 3.2 Beta 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #10293: Remove obsolete field in the PyMemoryView structure,
14+
unused undocumented value PyBUF_SHADOW, and strangely-looking code in
15+
PyMemoryView_GetContiguous.
16+
1317
- Issue #6081: Add str.format_map, similar to str.format(**mapping).
1418

1519
- If FileIO.__init__ fails, close the file descriptor.

Objects/memoryobject.c

Lines changed: 1 addition & 44 deletions

0 commit comments

Comments
 (0)