Created on 2019-10-13 14:57 by shihai1991, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 16746 | merged | shihai1991, 2019-10-13 14:59 | |
| Messages (6) | |||
|---|---|---|---|
| msg354586 - (view) | Author: Hai Shi (shihai1991) * | Date: 2019-10-13 14:57 | |
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.
|
|||
| msg354587 - (view) | Author: Hai Shi (shihai1991) * | Date: 2019-10-13 15:03 | |
sorry, typo error. # the ob_exports would be overflow in 32 bit machine when i = 2**31. --> # the ob_exports would be overflow in 64 bit machine when i = 2**31. |
|||
| msg354866 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2019-10-18 07:39 | |
See also array and mmap. |
|||
| msg354913 - (view) | Author: Hai Shi (shihai1991) * | Date: 2019-10-18 17:19 | |
Thanks, Serhiy, you are right. |
|||
| msg355023 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2019-10-21 06:31 | |
New changeset 06cd5b6acd98205adae1a3ea4223e88f38ad55ab by Serhiy Storchaka (Hai Shi) in branch 'master': bpo-38465: Convert the type of exports counters to Py_ssize_t. (GH-16746) https://github.com/python/cpython/commit/06cd5b6acd98205adae1a3ea4223e88f38ad55ab |
|||
| msg355024 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * | Date: 2019-10-21 06:32 | |
Thank you for your contribution hai shi! |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:21 | admin | set | github: 82646 |
| 2019-10-21 06:32:44 | serhiy.storchaka | set | status: open -> closed resolution: fixed messages: + msg355024 stage: patch review -> resolved |
| 2019-10-21 06:31:50 | serhiy.storchaka | set | messages: + msg355023 |
| 2019-10-18 17:19:18 | shihai1991 | set | messages: + msg354913 |
| 2019-10-18 07:39:20 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg354866 |
| 2019-10-13 15:03:36 | shihai1991 | set | messages: + msg354587 |
| 2019-10-13 14:59:28 | shihai1991 | set | keywords:
+ patch stage: patch review pull_requests: + pull_request16322 |
| 2019-10-13 14:57:15 | shihai1991 | create | |