[issue8143] urlparse has a duplicate of urllib.unquote

R. David Murray report at bugs.python.org
Mon Mar 15 03:26:42 CET 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

If I understand correctly, the problem with doing an import in a function is that there is an import lock which can cause various problem depending on how an application imports various things.  I've added Brett to the nosy list to see if he has a definitive opinion on this.

Note that this code is not duplicated in the py3 codebase.  It is probably best to just live with the code duplication in 2.7.  People may be importing unquote from the "wrong" module, and removing it would break their code.

----------
nosy: +brett.cannon, r.david.murray

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


More information about the Python-bugs-list mailing list