[issue17629] Expose string width to Python

STINNER Victor report at bugs.python.org
Thu Apr 4 00:09:19 CEST 2013


STINNER Victor added the comment:

"This is, on some occasions, useful to know; for instance, when testing string performance, it's handy to be able to very quickly throw something down that, without scanning the contents of all the strings used, can identify the width spread."

When you test string performances, you can get manually the biggest code point using: max(map(ord, str)).

Do you have an other use case?

----------

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


More information about the Python-bugs-list mailing list