BPO | [43871](https://bugs.python.org/issue43871) --- | :--- Nosy | @orsenthil, @vstinner, @tirkarthi, @p-alik, @miguendes PRs | https://github.com/python/cpython/pull/159122 *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = 'https://github.com/orsenthil' closed_at = None created_at = labels = ['3.10'] title = "urllib.parse.urlparse doesn't check port" updated_at = user = 'https://github.com/p-alik' ``` bugs.python.org fields: ```python activity = actor = 'miguendes' assignee = 'orsenthil' closed = False closed_date = None closer = None components = [] creation = creator = 'palik' dependencies = [] files = [] hgrepos = [] issue_num = 43871 keywords = ['patch'] message_count = 5.0 messages = ['391238', '391242', '391265', '391282', '392577'] nosy_count = 5.0 nosy_names = ['orsenthil', 'vstinner', 'xtreak', 'palik', 'miguendes'] pr_nums = ['25774'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = None url = 'https://bugs.python.org/issue43871' versions = ['Python 3.10'] ``` ### Linked PRs * gh-159122 * gh-161619 * gh-161621 * gh-162011
Activity
gh-88037 - Move port validation logic to parsing time (#159122)
picnixz commentedon Nov 8, 2026
@orsenthil the "needs backport to" labels are for PRs only
orsenthil commentedon Nov 8, 2026
@picnixz , Got it. Yeah, I was wondering about this while selecting. Removed.
[3.15] gh-88037 - Move port validation logic to parsing time (GH-159122…
[3.14] gh-88037 - Move port validation logic to parsing time (#159122) (
[3.14] gh-161987: Revert port validation at parse time (gh-161621) (#…
[3.15] gh-161987: Revert port validation at parse time (gh-161619) (#…
gh-88037: Update whatsnew section for the parsing difference in urlpa…