Message206529
In most cases when str object required, unicode object is allowed too. "s" and "z" codes (with modifiers) in PyArg_Parse*() accept both str and unicode instances. But "c" code accepts only 1-character str, not unicode. This makes harder writing version-agnostic code with imported unicode_literals (2.7 functions require bytes literals, 3.x functions require unicode literals) and breaks pickle compatibility (see issue13566).
This change will affect:
* str.ljust(), str.rjust() and str.center();
* '%c' % char;
* mmap.write_byte();
* array constructor and item setter for 'c' type;
* datetime.isoformat();
* bsddb.set_re_delim() and bsddb.set_re_pad();
* msvcrt.putch() and msvcrt.ungetch();
* swi.block.padstring(). |
|
Date |
User |
Action |
Args |
2013-12-18 15:59:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, alexandre.vassalotti |
2013-12-18 15:59:26 | serhiy.storchaka | set | messageid: <1387382366.37.0.964927896158.issue20015@psf.upfronthosting.co.za> |
2013-12-18 15:59:26 | serhiy.storchaka | link | issue20015 messages |
2013-12-18 15:59:25 | serhiy.storchaka | create | |
|