100 Commits (4e0ce820586e93cfcefb16c2a3df8eaefc54cbca)

Author SHA1 Message Date
Raymond Hettinger 4e0ce82058
Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)" (GH-22584) 5 years ago
Robert Smallshire 58a7da9e12
bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121) 5 years ago
Niklas Fiekas 8bd216dfed
bpo-29882: Add an efficient popcount method for integers (#771) 6 years ago
HongWeipeng 036fe85bd3 bpo-27145: small_ints[x] could be returned in long_add and long_sub (GH-15716) 6 years ago
Serhiy Storchaka b2e2025941 bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303) 7 years ago
Benjamin Peterson cbda8fc5d7
closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666) 7 years ago
Lisa Roach 5ac704306f bpo-33073: Adding as_integer_ratio to ints. (GH-8750) 7 years ago
INADA Naoki 16dfca4d82
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274) 8 years ago
Serhiy Storchaka 918403cfc3 bpo-29816: Shift operation now has less opportunity to raise OverflowError. (#680) 9 years ago
Eric V. Smith 89e1b1aae0 Issue 27080: PEP 515: add '_' formatting option. 10 years ago
Raymond Hettinger f0f1c239e4 Issue 27936: Fix inconsistent round() behavior between float and int 10 years ago
Mark Dickinson 82a95277b8 Issue #27870: A left shift of zero by a large integer no longer attempts to allocate large amounts of memory. 10 years ago
Serhiy Storchaka ea36c941a1 Issue #23640: int.from_bytes() no longer bypasses constructors for subclasses. 10 years ago
Yury Selivanov e0b23095ee Issues #26289 and #26315: Optimize floor/modulo div for single-digit longs 10 years ago
Martin Panter cbe16aefb8 Issue #25211: Eliminate lazy error message class by using subTest 10 years ago
Zachary Ware 38c707e7e0 Issue #21741: Update 147 test modules to use test discovery. 11 years ago
Serhiy Storchaka 08448a1f4d Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ 11 years ago
Victor Stinner 7fe1049fcb Issue #21422: Add a test to check that bool << int and bool >> int return an int 12 years ago
Serhiy Storchaka 3a20a5dead Issue #20546: Use specific asserts in int tests. 12 years ago
Serhiy Storchaka 9594942716 Issue #18783: Removed existing mentions of Python long type in docstrings, 13 years ago
Victor Stinner 3fa1aaebde Issue #17516: do not create useless tuple: remove dummy commas in tests 13 years ago
Chris Jerdonek 6f70fe8046 Issue #16790: add some of the recent issue #16045 int tests to test_long. 13 years ago
Mark Dickinson bcc17eefd2 Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of an int subclass. 14 years ago
Mark Dickinson 30970e9e44 Issue #10925: Add equivalent pure Python code for the builtin int-to-float conversion to test_long. 14 years ago
Eric Smith 3ab08cadae Issue #10624: Use support.requires_IEEE_754 in all appropriate tests. 15 years ago
Georg Brandl cbd2ab1311 #1513299: cleanup some map() uses where a comprehension works better. 15 years ago
Ezio Melotti 2623a37852 Merged revisions 86596 via svnmerge from 15 years ago
Ezio Melotti 19f2aeba67 Merged revisions 86596 via svnmerge from 15 years ago
Mark Dickinson cb61e5d9b5 Issue #9869: Make long() and PyNumber_Long return something of type 16 years ago
Ezio Melotti a65e2afe80 Merged revisions 79165 via svnmerge from 16 years ago
Mark Dickinson f9a5a8e0af Issue #2844: Make int('42', n) consistently raise ValueError for 16 years ago
Mark Dickinson 66f07cec30 Merged revisions 81553 via svnmerge from 16 years ago
Mark Dickinson 56544db46d Merged revisions 81551 via svnmerge from 16 years ago
Mark Dickinson 804b9d4dac Merged revisions 81551 via svnmerge from 16 years ago
Mark Dickinson 784a47f2c0 Issue #8825: additional testcases for int(string, 0) and long(string, 0). 16 years ago
Mark Dickinson 2066559913 Issue #8816: Extra tests for some built-in functions. These tests are 16 years ago
Florent Xicluna 0762788081 #7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper. 16 years ago
Georg Brandl 1b37e8728c Merged revisions 78093 via svnmerge from 16 years ago
Georg Brandl 89fad14944 Merged revisions 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from 16 years ago
Georg Brandl a4f46e1292 Remove unused imports in test modules. 16 years ago
Georg Brandl 708c487abe Merged revisions 78035,78040,78043,78049-78050,78052-78054 via svnmerge from 16 years ago
Georg Brandl df8a303dff Fix a few UnboundLocalErrors in test_long. 16 years ago
Ezio Melotti b0f5adc3f4 use assert[Not]IsInstance where appropriate 16 years ago
Alexandre Vassalotti c36c3789de Issue #1023290: Added API for the conversion of longs to bytes and vice-versa. 16 years ago
Senthil Kumaran ce8e33a095 Reverting the Revision: 77368. I committed Flox's big patch for tests by 16 years ago
Senthil Kumaran 3ddc435af6 Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox 16 years ago
Mark Dickinson 2cfda806f8 Merged revisions 77071 via svnmerge from 16 years ago
Mark Dickinson a4e1506e7f Merged revisions 77066 via svnmerge from 16 years ago
Mark Dickinson cbb62745ac Merged revisions 77062 via svnmerge from 16 years ago
Mark Dickinson 5c2db37c20 Issue #7435: Remove duplicate int/long tests, and other 16 years ago