Issue34234
Created on 2018-07-26 11:28 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| anyint.cocci | serhiy.storchaka, 2018-07-26 11:32 | |||
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 8479 | merged | serhiy.storchaka, 2018-07-26 11:29 | |
| Messages (3) | |||
|---|---|---|---|
| msg322415 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2018-07-26 11:28 | |
The proposed PR adds two private helpers #define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op)) #define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op)) and make it used it in the code. This may help to avoid bugs like issue34229. |
|||
| msg322417 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2018-07-26 11:32 | |
Most changes are made automatically by the Coccinelle (http://coccinelle.lip6.fr) script. spatch --sp-file anyint.cocci --dir . --in-place |
|||
| msg322726 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * ![]() |
Date: 2018-07-31 06:09 | |
New changeset 48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202 by Serhiy Storchaka in branch '2.7': [2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479) https://github.com/python/cpython/commit/48c8bf21f97aeb124dbd48bf2bdec1ab4ebc5202 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:03 | admin | set | github: 78415 |
| 2021-08-23 01:42:46 | corona10 | set | pull_requests: - pull_request26358 |
| 2021-08-23 01:37:29 | corona10 | set | nosy:
+ corona10 pull_requests: + pull_request26358 |
| 2018-07-31 06:09:54 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2018-07-31 06:09:39 | serhiy.storchaka | set | messages: + msg322726 |
| 2018-07-26 11:32:58 | serhiy.storchaka | set | files:
+ anyint.cocci messages: + msg322417 |
| 2018-07-26 11:29:44 | serhiy.storchaka | set | keywords:
+ patch stage: patch review pull_requests: + pull_request8002 |
| 2018-07-26 11:28:00 | serhiy.storchaka | create | |
