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 <rep...@bugs.python.org> <http://bugs.python.org/issue17629> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com