COMMITS
/ Lib/test/test_long.py September 11, 2025
S
gh-71810: Fix corner case (length==0) for int.to_bytes() (#138739)
Sergey B Kirpichev committed
September 2, 2025
P
gh-136599: Add tests for long_hash (#138335)
Pieter Eendebak committed
January 20, 2025
B
Remove duplicated dict keys in `test_{embed,long}.py` fixtures (#128727)
Bénédikt Tran committed
August 30, 2024
S
gh-121485: Always use 64-bit integers for integers bits count (GH-121486)
Serhiy Storchaka committed
June 2, 2024
M
gh-119740: Remove deprecated trunc delegation (#119743)
Mark Dickinson committed
May 23, 2024
M
GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220)
Mark Shannon committed
February 5, 2023
M
gh-101266: Fix __sizeof__ for subclasses of int (#101394)
Mark Dickinson committed
December 24, 2022
S
gh-100268: Add is_integer method to int (#100439)
Shantanu committed
October 30, 2022
N
gh-98783: Fix crashes when `str` subclasses are used in `_PyUnicode_Equal` (#98806)
Nikita Sobolev committed
October 6, 2022
N
gh-94808: Cover `PyObject_PyBytes` case with custom `__bytes__` method (#96610)
Nikita Sobolev committed
May 2, 2022
M
gh-90213: Speed up right shifts of negative integers (GH-30277)
Mark Dickinson committed
April 11, 2022
D
gh-91117: Ensure integer mod and pow operations use cached small ints (GH-31843)
Dennis Sweeney committed
February 3, 2022
Z
bpo-44977: Deprecate delegation of int to __trunc__ (GH-31031)
Zackery Spytz committed
January 16, 2022
B
bpo-46361: Fix "small" `int` caching (GH-30583)
Brandt Bucher committed
January 4, 2022
T
bpo-46233: Minor speedup for bigint squaring (GH-30345)
Tim Peters committed
December 27, 2021
X
bpo-46055: Speed up binary shifting operators (GH-30044)
Xinhang Xu committed
October 6, 2021
C
Fix typos in the Lib directory (GH-28775)
Christian Clauss committed
September 16, 2021
B
bpo-45155 : Default arguments for int.to_bytes(length=1, byteorder=sys.byteorder) (#28265)
Barry Warsaw committed
August 15, 2021
G
bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes (GH-27760)
Gautam Chaudhuri committed
October 7, 2020
R
October 1, 2020
R
bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)
Robert Smallshire committed
May 29, 2020
N
bpo-29882: Add an efficient popcount method for integers (#771)
Niklas Fiekas committed
November 26, 2019
H
bpo-27145: small_ints[x] could be returned in long_add and long_sub (GH-15716)
HongWeipeng committed
October 19, 2018
S
bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303)
Serhiy Storchaka committed
October 2, 2018
B
closes bpo-34868: Improve error message with '_' is combined with an invalid type specifier. (GH-9666)
Benjamin Peterson committed
September 14, 2018
L
bpo-33073: Adding as_integer_ratio to ints. (GH-8750)
Lisa Roach committed
July 14, 2018
I
bpo-34087: Fix buffer overflow in int(s) and similar functions (GH-8274)
INADA Naoki committed
March 30, 2017
S
bpo-29816: Shift operation now has less opportunity to raise OverflowError. (#680)
Serhiy Storchaka committed
September 10, 2016
E
Issue 27080: PEP 515: add '_' formatting option.
Eric V. Smith committed
September 3, 2016
R
Issue 27936: Fix inconsistent round() behavior between float and int
Raymond Hettinger committed
August 29, 2016
May 12, 2016
S
Issue #23640: int.from_bytes() no longer bypasses constructors for subclasses.
Serhiy Storchaka committed
S
Issue #23640: int.from_bytes() no longer bypasses constructors for subclasses.
Serhiy Storchaka committed
February 11, 2016
Y
Issues #26289 and #26315: Optimize floor/modulo div for single-digit longs
Yury Selivanov committed
September 26, 2015
M
Issue #25211: Merge test_long from 3.4 into 3.5
Martin Panter committed
September 25, 2015
M
Issue #25211: Eliminate lazy error message class by using subTest
Martin Panter committed
April 13, 2015
Z
Issue #21741: Update 147 test modules to use test discovery.
Zachary Ware committed
January 31, 2015
S
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
Serhiy Storchaka committed
May 12, 2014
V
Issue #21422: Add a test to check that bool << int and bool >> int return an int
Victor Stinner committed
February 8, 2014
S
Issue #20546: Use specific asserts in int tests.
Serhiy Storchaka committed
S
Issue #20546: Use specific asserts in int tests.
Serhiy Storchaka committed
August 27, 2013
S
Issue #18783: Removed existing mentions of Python long type in docstrings,
Serhiy Storchaka committed
S
Issue #18783: Removed existing mentions of Python long type in docstrings,
Serhiy Storchaka committed
March 26, 2013
V
Issue #17516: do not create useless tuple: remove dummy commas in tests
Victor Stinner committed
April 20, 2012
M
Issue #14630: Merge fix from 3.2.
Mark Dickinson committed
M
Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of an int subclass.
Mark Dickinson committed
October 23, 2011
M
Issue #10925: Add equivalent pure Python code for the builtin int-to-float conversion to test_long.
Mark Dickinson committed
December 4, 2010
E
Issue #10624: Use support.requires_IEEE_754 in all appropriate tests.
Eric Smith committed
G
#1513299: cleanup some map() uses where a comprehension works better.
Georg Brandl committed