Joshua> Why not

    Joshua> for key in d.keys():
    Joshua>     print key

    Joshua> That worked for me.

Time & space.  One motivation for using dbm files is to write large (huge,
in fact) mappings to disk.  Simply reconstituting the entire set of keys may
consume a lot of time (they must all be enumerated before you begin working
with any of them) and space (the number of keys in the file might be very
large).

-- 
Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/
        "XML sucks, dictionaries rock" - Dave Beazley
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to