[issue18236] str.isspace should use the Unicode White_Space property

Martin v. Löwis report at bugs.python.org
Mon Jun 24 07:52:28 CEST 2013


Martin v. Löwis added the comment:

-1 on that patch. It's using trickery to implement the test, and it's not clear that it is actually as efficient as the previous version. The previous version was explicitly modified to use a table lookup for performance reasons.

I'd be fine with not generating PyUnicode_IsWhiteSpace at all, but instead hand-coding it. I suspect that we might want to use more of PropList at some point, so an effort to parse it might not be wasted.

----------

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


More information about the Python-bugs-list mailing list