Python moratorium and the future of 2.x
Python moratorium and the future of 2.x
Posted Nov 13, 2009 18:11 UTC (Fri) by foom (subscriber, #14868)In reply to: Python moratorium and the future of 2.x by intgr
Parent article: Python moratorium and the future of 2.x
> How about len(str)?
That is not actually a particularly useful number to have available. Some more useful numbers:
a) Bounding box if rendered in a particular font. (or for a terminal: number of cell-widths)
b) Number of glyphs (after processing combining characters/etc)
c) Number of bytes when stored in a particular encoding.