Hi all, The docs on creating new dicts found here: http://docs.python.org/library/stdtypes.html#dict just warped my mind a little bit. They all create the dict {'one': 2, 'two', 3} -- creating {'one': 1, 'two': 2} would make a little more sense. Cheers, -Nate
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 28.09.2010 18:27, schrieb Nate Vack:
Hi all,
The docs on creating new dicts found here:
http://docs.python.org/library/stdtypes.html#dict
just warped my mind a little bit. They all create the dict {'one': 2, 'two', 3} -- creating {'one': 1, 'two': 2} would make a little more sense.
Hi Nate, you're quite right, these examples are unnecessarily twisted. I've fixed them now in the development docs. regards, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAky63M0ACgkQN9GcIYhpnLB77wCfVGoZWB35/z0SFBm0DPrJH2vw stMAn3C0EPx0KTP9zMmBzcbDfmfEf4Ot =nOWQ -----END PGP SIGNATURE-----
participants (2)
-
Georg Brandl -
Nate Vack