Message71086
| Author |
pitrou |
| Recipients |
gvanrossum, janssen, jimjjewett, loewis, mgiuca, orsenthil, pitrou, thomaspinckney3 |
| Date |
2008年08月13日.16:03:26 |
| SpamBayes Score |
0.029334057 |
| Marked as misclassified |
No |
| Message-id |
<1218643422.48a305de2a897@imp.free.fr> |
| In-reply-to |
<1218643340.48a3058cd4021@imp.free.fr> |
| Content |
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. |
|