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 georg.brandl
Recipients abacabadabacaba, ezio.melotti, georg.brandl, loewis, pitrou
Date 2010-04-18.09:27:00
SpamBayes Score 1.7612867e-06
Marked as misclassified No
Message-id <1271582823.92.0.655775900164.issue8401@psf.upfronthosting.co.za>
In-reply-to
Content
Python is not (e.g.) Haskell; Python strings are not lists whose contents happen to be characters.  Allowing an empty string here is a step backwards in the direction of "why not allow any string whose contents have an unambiguous meaning as bytes", i.e. the default encoding ASCII in Python 2.x.  Passing a string where bytes are expected is a programming error, and it should be rewarded with an exception, no matter if the string happens to be empty or not.
History
Date User Action Args
2010-04-18 09:27:04georg.brandlsetrecipients: + georg.brandl, loewis, pitrou, ezio.melotti, abacabadabacaba
2010-04-18 09:27:03georg.brandlsetmessageid: <1271582823.92.0.655775900164.issue8401@psf.upfronthosting.co.za>
2010-04-18 09:27:01georg.brandllinkissue8401 messages
2010-04-18 09:27:01georg.brandlcreate