[New-bugs-announce] [issue1125] bytes.split shold have same interface as str.split, or different name

Nir Soffer report at bugs.python.org
Fri Sep 7 03:30:28 CEST 2007


New submission from Nir Soffer:

>>> b'foo  bar'.split()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: split() takes at least 1 argument (0 given)

>>> b'foo  bar'.split(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: expected an object with the buffer interface

str.split and bytes.split should have the same interface, or different 
names.

----------
components: Library (Lib)
messages: 55723
nosy: nirs
severity: normal
status: open
title: bytes.split shold have same interface as str.split, or different name
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1125>
__________________________________


More information about the New-bugs-announce mailing list