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

2008-07-16 Thread Georg Brandl
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

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

2008-06-21 Thread Bruno Gola
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

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

2008-06-20 Thread A.M. Kuchling
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: