[issue3300] urllib.quote and unquote - Unicode issues

Antoine Pitrou report at bugs.python.org
Wed Aug 13 18:03:28 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Selon Antoine Pitrou <report at 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.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3300>
_______________________________________


More information about the Python-bugs-list mailing list