News for hackers. Stuff that matters.
Re:Python: The Dictionary Playbook by andreasvc on Thursday January 03, 2013 @03:07AM (#5001423)
Erm, you can leave out 'in most circumstances' and 'default'; this the way they always work.
Re:Python: The Dictionary Playbook by andylei on Thursday January 03, 2013 @05:20AM (#5001715)
well,

    (key, val) in data 
works if

    data = {(1,2) : 3}
Re:Python: The Dictionary Playbook by andreasvc on Thursday January 03, 2013 @12:38PM (#5003446)
Well but then the variable names are just wrong.