[issue5410] msvcrt bytes cleanup

Antoine Pitrou report at bugs.python.org
Sat Apr 4 18:56:48 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

There seems to be a problem with ungetwch():

>>> s = msvcrt.getwch()
# Here I type the Euro sign (€)
>>> ascii(s)
"'\\u20ac'"
>>> msvcrt.ungetwch(s)
>>> u = msvcrt.getwch()
>>> ascii(u)
"'\\xac'"

----------
nosy: +pitrou
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5410>
_______________________________________


More information about the Python-bugs-list mailing list