Perl is worse!

Martijn Faassen m.faassen at vet.uu.nl
Fri Jul 28 16:43:15 EDT 2000


Grant Edwards <nobody at nowhere.nohow> wrote:
[snip]
> No, 1 is not a sequence.  1 is an integer.  [1] is a sequence.  (1) is a
> sequence.

In fact the (1) bit _is_ an actual quirk/wart of Python, as (1) is also 1.
Single element tuples are a bit tricky. (1,) is clearer.

Regards,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?



More information about the Python-list mailing list