lists in dictonaries ?
Andreas.Leitgeb at siemens.at
Fri Sep 20 23:18:19 CEST 2002
xtian <xtian at toysinabag.com> wrote:
>> > You can put any python objects into a python dictionary,
>> > even the dictionary itself...
>> Oh, can I create a dictionary in Python that contains all those
>> dictionaries that don't contain themselves ... ?-)
>> *scnr*'ly yours.
> Would it contain itself?
if dict in dict: print "yeah"
More information about the Python-list