dictionary sub-value lookup

Richard richard at millinfo.co.za
Wed Feb 7 08:31:00 CET 2001


I am kinda new to this whole object orientation thing, so
there is probably an easy way of doing this, but the
tutorials etc are sparse.

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 ?

Since I will have to do a LOT of this, and M may be large,
I need a fast method.  

Ideas/comments etc ?


More information about the Python-list mailing list