]> granicus.if.org Git - python/commit
Issue #24731: Fixed crash on converting objects with special methods
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 Nov 2015 13:47:01 +0000 (15:47 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 Nov 2015 13:47:01 +0000 (15:47 +0200)
commit15095800a381a396cbc077cb5320203a8feae51a
treeba1f16c1b9be09a1f14d3af644c39e52924ee63f
parenta49de6be3669e4698ea55d22e0fdebb29be63f2e
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.
Lib/test/test_bytes.py
Lib/test/test_float.py
Lib/test/test_int.py
Lib/test/test_unicode.py
Misc/NEWS
Objects/bytesobject.c
Objects/floatobject.c
Objects/longobject.c