Georg Brandl [EMAIL PROTECTED] added the comment:
Fixed in 2.6 r65041, and 3k r65043.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3156
Bruno Gola [EMAIL PROTECTED] 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
New submission from A.M. Kuchling [EMAIL PROTECTED]:
bytearray's methods aren't consistent in what they accept.
append() takes either an int or a character: