Mark Dickinson wrote:
On Jul 24, 3:11 pm, "Rhodri James" <rho...@wildebst.demon.co.uk>
wrote:
Which doesn't make your point less valid. In fact I'd go so
far as to argue that what len() gives you is the number of
items in a container, so len(7) should return 0.
Nah. 7 contains three bits, so len(7) should *clearly* return 3.
and len("7") must return 8, by the same token... but wait!
>>> len("7")
1
>>>
my python installation must me outdated ;-)
bye
--
http://mail.python.org/mailman/listinfo/python-list