| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7e95a01e-f8fb-32a2-c7ca-217a7edf93f9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D2E6:8D142:A3BBC5:DE21BC:696AB99B |
| html-safe-nonce | 740ceb73d1568bacc48f5255aa0d176e42f6f9de5da6275011070f8f710e506c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkU2OjhEMTQyOkEzQkJDNTpERTIxQkM6Njk2QUI5OUIiLCJ2aXNpdG9yX2lkIjoiODkxMTY3ODY4NDM2Nzg5NjU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4469a8a6c5bcf74dc9eb689d6c45dfcc3fe2417c2cbb909e17208bdbe2672a3e |
| hovercard-subject-tag | pull_request:2035895412 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/123305/files |
| twitter:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3659035?s=400&v=4 |
| og:image:alt | Changes in the urllib.parse module:
Add option allow_none missing_as_none in urlparse(), urlsplit() and urldefrag(). If it is true, represent not defined components as None instead of an empty str... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/123305/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123305%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F123305%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/123305/files |
| Reload | https://github.com/python/cpython/pull/123305/files |
| Reload | https://github.com/python/cpython/pull/123305/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| python:main | https://github.com/python/cpython/tree/main |
| serhiy-storchaka:urllib-parse-allow-none | https://github.com/serhiy-storchaka/cpython/tree/urllib-parse-allow-none |
|
Conversation
26
| https://github.com/python/cpython/pull/123305 |
|
Commits
19
| https://github.com/python/cpython/pull/123305/commits |
|
Checks
42
| https://github.com/python/cpython/pull/123305/checks |
|
Files changed
| https://github.com/python/cpython/pull/123305/files |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
gh-67041: Allow to distinguish between empty and not defined URI components
| https://github.com/python/cpython/pull/123305/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/123305/files |
|
a60c9be
gh-67041: Allow to distinguish between empty and not defined URI comp…
serhiy-storchaka Aug 22, 2024
| https://github.com/python/cpython/pull/123305/commits/a60c9beb50050fe1dde3352dea7136073c85c606 |
|
a1dbfa6
Document the things.
serhiy-storchaka Aug 31, 2024
| https://github.com/python/cpython/pull/123305/commits/a1dbfa6eb8a131ec1d5a222bd870e85b46177aed |
|
b50b778
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Nov 26, 2024
| https://github.com/python/cpython/pull/123305/commits/b50b778ef8196b440ac8cc066637029bc5105454 |
|
eaa9ce6
Preserve the status of allow_none in results.
serhiy-storchaka Nov 27, 2024
| https://github.com/python/cpython/pull/123305/commits/eaa9ce6564ff0d1025991d872f9d88a85ed8c726 |
|
e5c31dd
Preserve _keep_empty in copying and encoding.
serhiy-storchaka Dec 5, 2024
| https://github.com/python/cpython/pull/123305/commits/e5c31dd38d8679ffddafa54283a9549227b6c3a6 |
|
78bdc13
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Nov 14, 2025
| https://github.com/python/cpython/pull/123305/commits/78bdc1388ed34e04f2fbbba397104620d562ecc7 |
|
5846bf2
Remove redundant import.
serhiy-storchaka Nov 14, 2025
| https://github.com/python/cpython/pull/123305/commits/5846bf2dde7d3e96ba7e273a2c42be1a0bc896ee |
|
b578c9d
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Nov 17, 2025
| https://github.com/python/cpython/pull/123305/commits/b578c9d7b79dc23c36d03510c6ceba6b690eae59 |
|
7d59b7e
Rename allow_none to missing_as_none.
serhiy-storchaka Nov 17, 2025
| https://github.com/python/cpython/pull/123305/commits/7d59b7ed22336618f662ccd8c2eb61332bd75d3f |
|
d025fa8
Address review comments.
serhiy-storchaka Nov 19, 2025
| https://github.com/python/cpython/pull/123305/commits/d025fa82338d60f14f9686d2d6c390e596c0030c |
|
af0a520
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Nov 22, 2025
| https://github.com/python/cpython/pull/123305/commits/af0a520a78ef07f0696ac147e85e494462cb334c |
|
76f2049
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Jan 4, 2026
| https://github.com/python/cpython/pull/123305/commits/76f204951a5149b55e2d4b365ad5e56f63c621ec |
|
37044d9
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Jan 4, 2026
| https://github.com/python/cpython/pull/123305/commits/37044d9632c750d5fa3055d53c41712651b2c407 |
|
ef79d2d
Merge branch 'urllib-parse-allow-none' of github.com:serhiy-storchaka…
serhiy-storchaka Jan 6, 2026
| https://github.com/python/cpython/pull/123305/commits/ef79d2dbfc71e95c6abca47165ac725a9eb7f25d |
|
1429c9e
Merge branch 'main' into urllib-parse-allow-none
serhiy-storchaka Jan 6, 2026
| https://github.com/python/cpython/pull/123305/commits/1429c9e4099966758d3b5623d19498a27ccef1e1 |
|
ba37be6
Use slots.
serhiy-storchaka Jan 6, 2026
| https://github.com/python/cpython/pull/123305/commits/ba37be6ab118c13b7f47d00c0c96e9659c5841f5 |
|
dd4bf2b
Minimize pickle by default.
serhiy-storchaka Jan 6, 2026
| https://github.com/python/cpython/pull/123305/commits/dd4bf2b4e0579c1b921fc0248b859baa766ee3c7 |
|
f70e5de
Fix lint.
serhiy-storchaka Jan 6, 2026
| https://github.com/python/cpython/pull/123305/commits/f70e5dec1b31cfaa5bb2fe5c3db6aaa24277054e |
|
669fbb4
Apply suggestions from code review
serhiy-storchaka Jan 6, 2026
| https://github.com/python/cpython/pull/123305/commits/669fbb4304b9c585e4a63d7e4f94f1a8b7e206bc |
|
Clear filters
| https://github.com/python/cpython/pull/123305/files |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
urllib.parse.rst
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
3.15.rst
| https://github.com/python/cpython/pull/123305/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
test_urlparse.py
| https://github.com/python/cpython/pull/123305/files#diff-bb89d64e7413a637b421609f9a4f532c294037171c3f0150479930acf30425fa |
|
parse.py
| https://github.com/python/cpython/pull/123305/files#diff-b3712475a413ec972134c0260c8f1eb1deefb66184f740ef00c37b4487ef873e |
|
2024-11-27-13-11-16.gh-issue-67041.ym2WKK.rst
| https://github.com/python/cpython/pull/123305/files#diff-e99dccbf3fbea59956dcbf2338840556e14160568f20c899eae7fba3e23d240f |
| Doc/library/urllib.parse.rst | https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
View file
| https://github.com/python/cpython/blob/669fbb4304b9c585e4a63d7e4f94f1a8b7e206bc/Doc/library/urllib.parse.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/123305/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/actions/runs/20755485234/job/59596341312?pr=123305 |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
| gpshead | https://github.com/gpshead |
| Nov 19, 2025 | https://github.com/python/cpython/pull/123305/files#r2540620942 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Nov 19, 2025 | https://github.com/python/cpython/pull/123305/files#r2540922198 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
| merwok | https://github.com/merwok |
| Jan 6, 2026 | https://github.com/python/cpython/pull/123305/files#r2665550500 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
| serhiy-storchaka | https://github.com/serhiy-storchaka |
| Jan 6, 2026 | https://github.com/python/cpython/pull/123305/files#r2665572336 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
| gpshead | https://github.com/gpshead |
| Nov 19, 2025 | https://github.com/python/cpython/pull/123305/files#r2540624150 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
|
| https://github.com/python/cpython/pull/123305/files#diff-f97a457691dcc7fd019d5f47ddea5cd6166b5b6efffc3d9a04e04455eb2deeba |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
| Please reload this page | https://github.com/python/cpython/pull/123305/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |