Message122330
Here is another str method not ready for non-BMP chars:
>>> u = '\U00010140'
>>> u.translate({ord(u):ord('A')})
'𐅀'
(expected 'A')
>>> u = 'B'
>>> u.translate({ord(u):ord('A')})
'A' |
|
Date |
User |
Action |
Args |
2010-11-25 05:04:00 | belopolsky | set | recipients:
+ belopolsky, lemburg, pitrou, eric.smith, ezio.melotti |
2010-11-25 05:04:00 | belopolsky | set | messageid: <1290661440.41.0.514759656337.issue10521@psf.upfronthosting.co.za> |
2010-11-25 05:03:54 | belopolsky | link | issue10521 messages |
2010-11-25 05:03:54 | belopolsky | create | |
|