[New-bugs-announce] [issue38465] The type of ob_exports in PyByteArrayObject become Py_ssize_t.

hai shi report at bugs.python.org
Sun Oct 13 10:57:15 EDT 2019


New submission from hai shi <shihai1991 at 126.com>:

for a code example:
```
v = []
b = bytearray(0xffff)
for i in range(2**31+1)
    # the ob_exports would be overflow in 32 bit machine when i = 2**31.
    v.append(memoryview(b))
```
IMHO, i thought converting the type of ob_exports to Py_ssize_t is fine.

PS: I have no actual user scenario.

----------
components: Interpreter Core
messages: 354586
nosy: shihai1991
priority: normal
severity: normal
status: open
title: The type of ob_exports in PyByteArrayObject become Py_ssize_t.
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38465>
_______________________________________


More information about the New-bugs-announce mailing list