[issue9200] str.isprintable() is always False for large code points
Alexander Belopolsky
report at bugs.python.org
Sat Nov 27 02:57:16 CET 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Attached patch fixes isprintable and other ctype-like methods. I left isspace() out for now because I could not find a test character outside of BMP to test with, but I think we should fix that for completeness as well.
At this point the goal is mostly to showcase Py_UNICODE_NEXT(), not completeness. See issue10542.
I also noticed that upper/lower/swapcase methods have the same issue:
>>> '\N{MATHEMATICAL BOLD CAPITAL A}'.lower() == '\N{MATHEMATICAL BOLD CAPITAL A}'
True
This will be a subject of a separate issue.
----------
Added file: http://bugs.python.org/file19831/issue9200.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9200>
_______________________________________
More information about the Python-bugs-list
mailing list