[New-bugs-announce] [issue3560] redundant "base" field in memoryview objects

Antoine Pitrou report at bugs.python.org
Fri Aug 15 11:37:07 CEST 2008


New submission from Antoine Pitrou <pitrou at free.fr>:

PyMemoryViewObject has a "base" field which points to the originator of
the buffer. However, this field has become redundant now that the
Py_buffer struct has received an "obj" field which also points to the
originator of the buffer (this has been done as part of the fix to #3139).

Not removing "base" would make for a confusing and error-prone API.
However, removing it is complicated by the fact that "base" is sometimes
abused to contain a tuple (for PyBUF_SHADOW type buffers, which are
neither mentioned in the PEP nor used anywhere in py3k).

----------
components: Interpreter Core
messages: 71164
nosy: pitrou, teoliphant
priority: critical
severity: normal
status: open
title: redundant "base" field in memoryview objects
type: behavior
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3560>
_______________________________________


More information about the New-bugs-announce mailing list