[issue11009] urllib.splituser is not documented
New submission from anatoly techtonik
Changes by Sandro Tosi
Senthil Kumaran
Sandro Tosi
Senthil Kumaran
Vinay Sajip added the comment:
Note that at least splituser is being used outside the stdlib: packaging
(which was intended to be part of the stdlib) used it, and hence so do
distutils2 and distlib (by sharing parts of their codebases). Of course these last two are outside the stdlib.
Similar functions are reimplemented outside the stdlib (e.g. see parse_credentials in pip.download).
If the only reason for not exposing these is documentation clutter, surely there are approaches to minimise this. If the reason is that future implementations may change or remove them, that should be clarified. But since the basics of an url are unlikely to change, I don't see why these functions might be removed in the future.
----------
nosy: +vinay.sajip
_______________________________________
Python tracker
anatoly techtonik added the comment:
Why not to follow the convention and add underscore _ to the names to remove the ambiguity and future reports and confusion about that thees functions are not documented?
----------
status: closed -> pending
_______________________________________
Python tracker
Ezio Melotti added the comment:
Doing that now will be backward incompatible, because people might be using these functions already even if they are not documented. An alias could be created, but I'm not sure it's worth doing it.
----------
nosy: +ezio.melotti
status: pending -> open
_______________________________________
Python tracker
Changes by Georg Brandl
participants (6)
-
anatoly techtonik
-
Ezio Melotti
-
Georg Brandl
-
Sandro Tosi
-
Senthil Kumaran
-
Vinay Sajip