]> 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:53:19 +0000 (15:53 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 25 Nov 2015 13:53:19 +0000 (15:53 +0200)
commitbb6e4a0b31402f2e242f8f4be9a26e07d3dcc1b7
tree552f1bdf983de7b8957bb65597c691c932d063db
parentdde0815c359fc321b0e7a94f885132e2e77534a1
parentf9afda57ad7d0394531982b2c9de8301c5a54e45
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
Misc/NEWS
Objects/bytesobject.c
Objects/longobject.c