STINNER Victor victor.stin...@haypocalc.com added the comment:
Ooops, I read converterr(a unicode character, ...), but it should be
converterr(an unicode character, ...) ;-)
Thanks benjamin.peterson, it will help other issues like #5391 and
#5410.
--
Gregory P. Smith g...@krypto.org added the comment:
good catch. the patch looks correct to me.
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
___
Benjamin Peterson benja...@python.org added the comment:
Fixed in r71013.
--
nosy: +benjamin.peterson
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
priority: - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Note: #5391 and #5410 are depends on this issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
To avoid byte/character mixture, getarg('c') must only accept a byte
string of 1 byte and getarg('C') only an unicode string of 1
character.
Impacted methods:
- datetime.datetime.isoformat(sep), array.array(type, data): don't
STINNER Victor victor.stin...@haypocalc.com added the comment:
unicode methods center(), ljust(), rjust() use a callback (convert_uc)
to get an unicode character (unicode string of 1 character). If 'C' is
fixed, convert_uc() callback can be removed.
--
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
--
nosy: +ocean-city
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5499
___
___