dictionary sub-value lookup
Ruediger Maehl
ruediger.maehl at dzsh.de
Thu Feb 8 06:52:57 EST 2001
Richard schrieb in Nachricht <3A80F9B4.E072037D at millinfo.co.za>...
>I have an object M which contains N dictionaries. Inside
>dictionary N, is an identifier, Y, plus various other
>values, eg: Z.... is it possible to find M.Y.Z without
>looping through the whole of M, checking Y each time ?
Hi Richard,
do you mean something similar to the path of a file,
but only for internal objects?
If so, you should perhaps consider using XML for the representation
of your objects/data.
Have a look at: http://www.python.org/sigs/xml-sig/
Rüdiger
More information about the Python-list
mailing list