]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #12909: Make PyLong_As* functions consistent in their use of exceptions.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Wed, 7 Sep 2011 19:40:26 +0000 (21:40 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Wed, 7 Sep 2011 19:40:26 +0000 (21:40 +0200)
commit3d5881ec2b600d59c38ca757ecdbfaf6c7d976cf
tree56fe5975d6856ad3f89daa74988a5f66221eda4a
parent425fcd3045708a6e8ce1c15c6950101d2523dd59
Issue #12909: Make PyLong_As* functions consistent in their use of exceptions.

PyLong_AsDouble() and PyLong_AsUnsignedLongLong() now raise TypeError (rather
than SystemError) when passed a non-integer argument, matching the behavior of
all the other PyLong_As*() functions.
Modules/_testcapimodule.c
Modules/testcapi_long.h
Objects/longobject.c