[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2021-08-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests:  -26358

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2021-08-22 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10
nosy_count: 2.0 -> 3.0
pull_requests: +26358
pull_request: https://github.com/python/cpython/pull/27901

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-31 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


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


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-31 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-26 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Most changes are made automatically by the Coccinelle 
(http://coccinelle.lip6.fr) script.

spatch --sp-file anyint.cocci --dir . --in-place

--
Added file: https://bugs.python.org/file47713/anyint.cocci

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-26 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +8002
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34234] Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7

2018-07-26 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

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.

--
components: Interpreter Core
messages: 322415
nosy: benjamin.peterson, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact() in 2.7
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com