Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It was added as a replacement of locale aware isdigit(). It was initially used 
only for implementing bytes.isdigit() and in PyOS_ascii_strtod().

isdigit() is not used in Modules/_struct.c, so there is nothing to replace with 
Py_ISDIGIT(). Currently hardcoded '0' and '9' are used in more places than 
Py_ISDIGIT(). Rewriting all this code just because we have Py_ISDIGIT() is a 
code churn.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38474>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to