Browse Source
Issue #24731: Fixed crash on converting objects with special methods
Issue #24731: Fixed crash on converting objects with special methods
__bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly.pull/40/head
8 changed files with 50 additions and 10 deletions
-
11Lib/test/test_bytes.py
-
15Lib/test/test_float.py
-
7Lib/test/test_int.py
-
11Lib/test/test_unicode.py
-
4Misc/NEWS
-
8Objects/bytesobject.c
-
2Objects/floatobject.c
-
2Objects/longobject.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue