]> 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:52:04 +0000 (15:52 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 Nov 2015 13:52:04 +0000 (15:52 +0200)
commitf9afda57ad7d0394531982b2c9de8301c5a54e45
tree8a09bb1aa816b4daf6777e630333dfece309cdb5
parentc5f3b4285a8f3f90305d777a88a856a623c22cb1
parent15095800a381a396cbc077cb5320203a8feae51a
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