From: Chuck E. <ec...@mi...> - 2000-10-13 20:00:53
|
Regarding my earlier note about dict.values() creating a new list, it would appear that sometimes it does and sometimes it doesn't. I certainly wouldn't rely on it. del dict[name] is the way to go (or sess.delValue() in our case). >python Python 2.0c1 (#7, Oct 9 2000, 18:44:43) [MSC 32 bit (Intel)] on win32 Type "copyright", "credits" or "license" for more information. >>> dict = {'x': 5, 'y': 6} >>> id(dict.values()) 7826764 >>> id(dict.values()) 7811740 >>> id(dict.values()) 7811740 >>> id(dict.values()) 7811740 >>> |