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 vstinner
Recipients ebfe, lemburg, pitrou, vstinner
Date 2009-01-04.22:51:11
SpamBayes Score 0.0018086785
Marked as misclassified No
Message-id <200901042351.39426.victor.stinner@haypocalc.com>
In-reply-to <495629E8.1080408@egenix.com>
Content
> The fact that Python 2.x also accepts Unicode ASCII strings 
> where strings are normally expected is intended to help with 
> the migration to Unicode

I hate this behaviour. It doesn't help migration, it's the opposite! Sometimes 
it works (ASCII), and somtimes it fails (just one non-ASCII character). And 
then we will read "Unicode sucks!" because people doesn't understand the 
error.

> In Python 3.x, it's probably better to use bytes throughout the
> API.

I propose to reject unicode in Python 3.x and display a warning for Python 
2.x. A warning to prepare the migration... not to Unicode, but to Python3 ;-)
History
Date User Action Args
2009-01-04 22:51:13vstinnersetrecipients: + vstinner, lemburg, pitrou, ebfe
2009-01-04 22:51:12vstinnerlinkissue4757 messages
2009-01-04 22:51:11vstinnercreate