[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-04-02 Thread STINNER Victor
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. --

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-04-01 Thread Gregory P. Smith
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 ___

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-04-01 Thread Benjamin Peterson
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

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-31 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5499 ___

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-31 Thread Hirokazu Yamamoto
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 ___

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread STINNER Victor
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

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread STINNER Victor
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. --

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-03-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5499 ___ ___