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 accept byte anymore - msvcrt.putch(char), msvcrt.ungetch(char), <mmap object>.write_byte(char): don't accept unicode anymore I tried runtests.sh: only the 3 bytes.{center,ljust,rjust} tests have to be changed, all other tests are ok. Related issues: #3446, #5391. ---------- files: getarg_strict_char.patch keywords: patch messages: 83676 nosy: haypo severity: normal status: open title: only accept byte for getarg('c') and unicode for getarg('C') versions: Python 3.1 Added file: http://bugs.python.org/file13350/getarg_strict_char.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5499> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com