Message79090
> 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 ;-) |
|
Date |
User |
Action |
Args |
2009-01-04 22:51:13 | vstinner | set | recipients:
+ vstinner, lemburg, pitrou, ebfe |
2009-01-04 22:51:12 | vstinner | link | issue4757 messages |
2009-01-04 22:51:11 | vstinner | create | |
|