[Tutor] Self referencing within a dictionary
Liam Clarke
cyresse at gmail.com
Sat Apr 2 12:12:49 CEST 2005
Hi,
Out of curiosity, is it possible to create a dictionary like this -
foo = {'a':1, 'b':2, 'c':foo['a']}
I know that as above doesn't work, but was just wondering if it's
possible, and if it's a
Bad Thing?
Regards,
Liam Clarke
--
'There is only one basic human right, and that is to do as you damn well please.
And with it comes the only basic human duty, to take the consequences.
More information about the Tutor
mailing list