>>> some_dict = {'spam' : 1, 'eggs' : ['foo', 'bar']} >>> cached_add_args = {(1, 1) : 2}
>>> cached_add_args[(4, 8)] = 12 >>> cached_add_args[(4, 8)] 12 >>> del cached_add_args[(4, 8)]
>>> some_dict.keys() ['eggs', 'spam'] >>> some_dict.values() [['foo', 'bar'], 1] >>> some_dict.items() [('eggs', ['foo', 'bar']), ('spam', 1)] >>> cached_add_args.has_key((2, 2)) 0 >>> cached_add_args[(2, 2)] = 4 >>> cached_add_args.has_key((2, 2)) 1