New submission from Guido van Rossum: I've seen and written some code that uses urllib.splitport() [1], but it's not in the export list, nor in the docs. However I see no easy other way to perform the same function. Should we make it official, or get rid of it? It's used internally in urllib/request.py [2]. There's a test for it in test_urlparse.py [3], but another test [4] also acknowledges that it's "undocumented" (which suggests that the author of that test didn't know what to do with it either).
Same question for the others in that list [4]: 'splitattr', 'splithost', 'splitnport', 'splitpasswd', 'splitport', 'splitquery', 'splittag', 'splittype', 'splituser', 'splitvalue', 'Quoter', 'ResultBase', 'clear_cache', 'to_bytes', 'unwrap', References: [1] https://hg.python.org/cpython/file/tip/Lib/urllib/parse.py#l956 [2] https://hg.python.org/cpython/file/tip/Lib/urllib/request.py#l106 [3] https://hg.python.org/cpython/file/tip/Lib/test/test_urlparse.py#l1015 [4] https://hg.python.org/cpython/file/tip/Lib/test/test_urlparse.py#l946 ---------- messages: 270193 nosy: gvanrossum priority: normal severity: normal status: open title: urllib.splitport -- is it official or not? versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27485> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com