On Nov 3, 9:08 pm, TP <[EMAIL PROTECTED]> wrote: > I have a question about the difference of behavior of "len" when applied on > tuples or on lists. I mean: > $ len( ( 'foo' ) ) > 3
This is actually the length of a bracketed string, not a tuple. Tuple's are defined by the existence of a comma...try: >>> len(('foo',)) 1 -- http://mail.python.org/mailman/listinfo/python-list