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 abacabadabacaba
Recipients abacabadabacaba, ezio.melotti, loewis, pitrou
Date 2010-04-16.08:51:51
SpamBayes Score 7.818882e-05
Marked as misclassified No
Message-id <1271407915.62.0.885502444709.issue8401@psf.upfronthosting.co.za>
In-reply-to
Content
__doc__ of bytearray says:
> bytearray(iterable_of_ints) -> bytearray
> bytearray(string, encoding[, errors]) -> bytearray
> bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray
> bytearray(memory_view) -> bytearray
So, unless an encoding is given, empty string should be interpreted as an iterable of ints. BTW, documentation and docstring should be made consistent with each other.
History
Date User Action Args
2010-04-16 08:51:58abacabadabacabasetrecipients: + abacabadabacaba, loewis, pitrou, ezio.melotti
2010-04-16 08:51:55abacabadabacabasetmessageid: <1271407915.62.0.885502444709.issue8401@psf.upfronthosting.co.za>
2010-04-16 08:51:54abacabadabacabalinkissue8401 messages
2010-04-16 08:51:52abacabadabacabacreate