Issue #10293: Remove obsolete field in the PyMemoryView structure,

unused undocumented value PyBUF_SHADOW, and strangely-looking code in
PyMemoryView_GetContiguous.
This commit is contained in:
Antoine Pitrou 2010-11-04 20:30:33 +00:00
parent 8f2e07b7d0
commit aeb6ceead7
5 changed files with 6 additions and 47 deletions

View file

@ -759,7 +759,7 @@ class SizeofTest(unittest.TestCase):
check(int(PyLong_BASE**2-1), size(vh) + 2*self.longdigit)
check(int(PyLong_BASE**2), size(vh) + 3*self.longdigit)
# memory
check(memoryview(b''), size(h + 'P PP2P2i7P'))
check(memoryview(b''), size(h + 'PP2P2i7P'))
# module
check(unittest, size(h + '3P'))
# None