This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maxlem
Recipients benjamin.peterson, maxlem, rhettinger
Date 2009-08-18.20:52:48
SpamBayes Score 3.4189625e-06
Marked as misclassified No
Message-id <1250628782.18.0.231422804744.issue6730@psf.upfronthosting.co.za>
In-reply-to
Content
It does not suits my needs.

what if keys are passed as an argument?

I have to add this ugly loop :

for key in keys:
    d[key] = [] 
    

I really think that :
1) The doc should warn about it, since it is a very weird behaviour
2) There could at least be a third argument allowing the user to choose,
with a default value that maintains the current behaviour (for
compatibility, even though I think the default should be a deep copy)
History
Date User Action Args
2009-08-18 20:53:02maxlemsetrecipients: + maxlem, rhettinger, benjamin.peterson
2009-08-18 20:53:02maxlemsetmessageid: <1250628782.18.0.231422804744.issue6730@psf.upfronthosting.co.za>
2009-08-18 20:52:49maxlemlinkissue6730 messages
2009-08-18 20:52:48maxlemcreate