New submission from hai shi <shihai1...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue38465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to