summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-02-11 11:56:17 (GMT)
committerGitHub <noreply@github.com>2024-02-11 11:56:17 (GMT)
commitd8346d6c0677b0e8fcff5aa6b179d3c3afca48c6 (patch)
tree054cc289b1f0ec94e2701855f61a18152c514e4d /Python/Python-ast.c
parentd65cd8bc4e3a4d070385e2236332c14b63daeada (diff)
downloadcpython-d8346d6c0677b0e8fcff5aa6b179d3c3afca48c6.zip
cpython-d8346d6c0677b0e8fcff5aa6b179d3c3afca48c6.tar.gz
cpython-d8346d6c0677b0e8fcff5aa6b179d3c3afca48c6.tar.bz2
[3.12] gh-115011: Improve support of __index__() in setters of members with unsigned integer type (GH-115029) (GH-115294)
Setters for members with an unsigned integer type now support the same range of valid values for objects that has a __index__() method as for int. Previously, Py_T_UINT, Py_T_ULONG and Py_T_ULLONG did not support objects that has a __index__() method larger than LONG_MAX. Py_T_ULLONG did not support negative ints. Now it supports them and emits a RuntimeWarning. (cherry picked from commit d9d6909697501a2604d5895f9f88aeec61274ab0)
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions