Le Saturday 28 February 2009 15:06:38 Hirokazu Yamamoto, vous avez écrit : > I greped py3k source tree with "c", I found another Py_BuildValue("c" in > curse module. But this function returns unicode in else clause, so > probably this is correct usage.
I used different regex on to catch "...c..." with Py_BuildValue and PyArg_Parse... because a function may have other arguments or specify the function name with "...:name": http://bugs.python.org/issue5391 It looks like msvcrt.putch(char) and msvcrt.ungetch(char) use the wrong types. -- Victor Stinner aka haypo http://www.haypocalc.com/blog/ _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com