[issue13287] urllib.request exposes too many names

Ezio Melotti report at bugs.python.org
Fri Oct 28 17:23:33 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

This is technically backward incompatible, so if we define an __all__ with most of these names, we are officially making them public, if we leave them out, from urllib.request import * will break for someone.
You could argue that import * is discouraged though.

----------
nosy: +ezio.melotti

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


More information about the Python-bugs-list mailing list