cpython/Misc/NEWS.d/next/Core and Builtins/2017-10-28-19-11-05.bpo-200...

4 lines
228 B
ReStructuredText

Bytearray methods partition() and rpartition() now accept only bytes-like
objects as separator, as documented. In particular they now raise TypeError
rather of returning a bogus result when an integer is passed as a separator.