
Feb. 11, 2010
7:19 p.m.
On 02/11/2010 06:35 PM, Gerald Britton wrote:
Switching gears for a moment, what is the feeling regarding the copy() methods for dictionaries and sets? Are they truly redundant? Should they be deprecated? Should users be encouraged to use the copy module or just use "newdict = dict(olddict)" and "newset = set(oldset)" to build a new dictionary or set from an existing one?
I don't know what one *should* do but I never used .copy() but always dict(olddict) or set(oldset). -panzi