summaryrefslogtreecommitdiffstats
path: root/Modules/testcapi_long.h
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9530: Fix undefined behaviour due to signed overflow in testcapi_long.h.Mark Dickinson2011-11-191-2/+1
|
* Issue #12909: Make PyLong_As* functions consistent in their use of exceptions.Nadeem Vawda2011-09-071-0/+26
| | | | | | 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.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-174/+174
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 69498 via svnmerge fromMark Dickinson2009-02-101-1/+17
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69498 | mark.dickinson | 2009-02-10 15:46:50 +0000 (Tue, 10 Feb 2009) | 6 lines Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for negative arguments. Previously, it raised TypeError. Thanks Lisandro Dalcin. ........
* Fix error in comment, and in test_long_api and test_longlong_api removeTim Peters2001-06-161-20/+19
| | | | the need for the F_ERROR macro.
* Add tests of PyLong_{As,From}{Unsigned,}Long. These are very much likeTim Peters2001-06-141-0/+167
the new PyLong_{As,From}{Unsigned,}LongLong tests, so the bulk of the code is in the new #include file testcapi_long.h, which generates different code depending on how macros are set. This sucks, but I couldn't think of anything that sucked less. UNIX headache? If we still maintain dependencies by hand, someone who knows what they're doing should teach whatever needs it that _testcapimodule.c includes testcapi_long.h.