Author pitrou
Recipients gvanrossum, janssen, jimjjewett, loewis, mgiuca, orsenthil, pitrou, thomaspinckney3
Date 2008-08-13.16:03:26
SpamBayes Score 0.0293341
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.
History
Date User Action Args
2008-08-13 16:03:28pitrousetrecipients: + pitrou, gvanrossum, loewis, jimjjewett, janssen, orsenthil, thomaspinckney3, mgiuca
2008-08-13 16:03:26pitroulinkissue3300 messages
2008-08-13 16:03:26pitroucreate