Message71086
Selon Antoine Pitrou <report@bugs.python.org>:
> As for the defaultdict, here is how it can look like (this is on 2.5):
>
(there should be a line here saying "class D(defaultdict)" :-))
> ... def __missing__(self, key):
> ... print "__missing__", key
> ... value = "%%%02X" % key
> ... self[key] = value
> ... return value
cheers
Antoine. |
|
Date |
User |
Action |
Args |
2008-08-13 16:03:28 | pitrou | set | recipients:
+ pitrou, gvanrossum, loewis, jimjjewett, janssen, orsenthil, thomaspinckney3, mgiuca |
2008-08-13 16:03:26 | pitrou | link | issue3300 messages |
2008-08-13 16:03:26 | pitrou | create | |
|