![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: Multiplying all the values in a dictionary
From: <adam.deprince@gmail.com>
Date: Fri Mar 24 2006 - 03:01:39 CET
>for key in d:
Naw, if you are going to use list interpolation go all the way and save
>>> d = {(100,500):[5,5], (100,501):[6,6], (100,502):[7,7]}
Remember, d.update takes a sequence of 2 element sequences representing
If your dict is something big and ugly that barely fits in ram, or
<repeating d= from before>
|