len() should always return something

drednot57 dpresley at midiowa.net
Mon Jul 27 00:20:51 EDT 2009


To the best of my recollection, the len() function only applies to
container objects; i. e. tuples, lists, strings, etc.  an integer
object is not a container, thus one receives an error when sending an
int as an argument for len().



More information about the Python-list mailing list