maybe a bug in python

Torsten Bronger bronger at physik.rwth-aachen.de
Sun Jun 5 12:45:39 EDT 2005


Hallöchen!

flyaflya <flyaflya at gmail.com> writes:

>>>> a = {1: ("a")}
>>>> a[1]
> 'a'
> why not ('a')?

("a") is not a tuple, but ("a",) is.

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus



More information about the Python-list mailing list