[issue8143] urlparse has a duplicate of urllib.unquote

Brett Cannon report at bugs.python.org
Tue Mar 16 02:19:42 CET 2010


Brett Cannon <brett at python.org> added the comment:

So David's right that local commits are bad from a threading perspective. If you happen to have an import trigger a thread which itself triggers an import you will lock up the interpreter. Typically this is avoided by not importing anything in a thread and not launching a thread based on an import. But some people do and they eventually get bit by calling a function that they didn't realize would trigger an import as a side-effect.

Since the code duplication has been solved in Python 3 I say add a comment about the duplication and be done with it for ease of development and complete backwards-compatibility.

----------

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


More information about the Python-bugs-list mailing list