[issue17629] Expose string width to Python

Ezio Melotti report at bugs.python.org
Thu Apr 4 00:27:24 CEST 2013


Ezio Melotti added the comment:

max(map(ord, s)) or your str_width(s) are not much more complicated than s.width(), just slower, so it's just a problem of performance.

len() is a much more common operation so it makes sense to have a fast built-in function.

----------

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


More information about the Python-bugs-list mailing list