[issue3156] bytes type has inconsistent methods (append, insert)

Bruno Gola report at bugs.python.org
Sat Jun 21 22:26:20 CEST 2008


Bruno Gola <brunogola at gmail.com> added the comment:

The following patch fixes the behavior, .append and .insert will accept
only integer as parameters.

Is this really the desired behavior? I mean, why not to accept a
character for both methods?

There are two tests in Lib/test/test_io.py that uses the old behavior
for .append().

----------
keywords: +patch
nosy: +brunogola
Added file: http://bugs.python.org/file10691/issue3156.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3156>
_______________________________________


More information about the Python-bugs-list mailing list