[issue5499] only accept byte for getarg('c') and unicode for getarg('C')
STINNER Victor
report at bugs.python.org
Tue Mar 17 13:58:19 CET 2009
New submission from STINNER Victor <victor.stinner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue5499>
_______________________________________
More information about the Python-bugs-list
mailing list