This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou
Date 2008-08-01.17:47:29
SpamBayes Score 2.8561155e-07
Marked as misclassified No
Message-id <1217612850.46.0.924257550681.issue3486@psf.upfronthosting.co.za>
In-reply-to
Content
This works in py3k but not in 2.x. I don't know if it is deliberate:

Python 3.0b2+ (py3k, Jul 27 2008, 12:52:40) 
[GCC 4.3.1 20080626 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> b"".join([bytearray(b"")])
b''

Python 2.6b2+ (trunk, Aug  1 2008, 01:47:52) 
[GCC 4.3.1 20080626 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> b"".join([bytearray(b"")])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sequence item 0: expected string, bytearray found
History
Date User Action Args
2008-08-01 17:47:30pitrousetrecipients: + pitrou
2008-08-01 17:47:30pitrousetmessageid: <1217612850.46.0.924257550681.issue3486@psf.upfronthosting.co.za>
2008-08-01 17:47:29pitroulinkissue3486 messages
2008-08-01 17:47:29pitroucreate