]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Made the TypeError message in bytes_iconcat() less confusing.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 9 May 2008 19:50:27 +0000 (19:50 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 9 May 2008 19:50:27 +0000 (19:50 +0000)
commit14a767d4f499c8ead06a14d9c64c01c4ced95e61
treef6fbcb2fc908cd7bb749b624fb93c1f57199330c
parentb2289ec60c2f2c6a7bc259e650871c6e860169f1
Made the TypeError message in bytes_iconcat() less confusing.

Before this change, the following example would output:

  >>> b = bytearray(b"hello")
  >>> b += "world"
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  TypeError: can't concat bytes to bytearray
Objects/bytesobject.c