René's URL Explorer Experiment


Title: [3.8] bpo-37409: fix relative import with no parent (GH-14956) by brettcannon · Pull Request #15913 · python/cpython · GitHub

Open Graph Title: [3.8] bpo-37409: fix relative import with no parent (GH-14956) by brettcannon · Pull Request #15913 · python/cpython

X Title: [3.8] bpo-37409: fix relative import with no parent (GH-14956) by brettcannon · Pull Request #15913 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Relative imports use resolve_name to get the absolute target name, which first seeks the current module's absolute package name from the globals: If package (and spec.parent) are missing then i...

X Description: Relative imports use resolve_name to get the absolute target name, which first seeks the current module's absolute package name from the globals: If package (and spec.parent) are missing th...

Mail addresses
benjimin@users.noreply.github.com

Opengraph URL: https://github.com/python/cpython/pull/15913

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:27c33cec-285f-4610-fa1b-1a9378b3cc03
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDFD0:32AD0D:8916E0:BB6B74:6A554EBA
html-safe-nonce7ae20141f0d8822ee54a7459229a4d85438f1a343acbf0e1f214003e4735efd8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkQwOjMyQUQwRDo4OTE2RTA6QkI2Qjc0OjZBNTU0RUJBIiwidmlzaXRvcl9pZCI6IjIxNzkwNTM4NjI3Mjc3OTg0NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdefb6c46ab21627ef29dd805625aaf75e32fa771cea97c5a51711fb8ff377e68
hovercard-subject-tagpull_request:316383542
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/15913/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/17b449fdcee0a610f21b9afa09f93a7a1f76bc29b93628037c50cabf27a5afa8/python/cpython/pull/15913
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17b449fdcee0a610f21b9afa09f93a7a1f76bc29b93628037c50cabf27a5afa8/python/cpython/pull/15913
og:image:altRelative imports use resolve_name to get the absolute target name, which first seeks the current module's absolute package name from the globals: If package (and spec.parent) are missing then i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrettcannon
hostnamegithub.com
expected-hostnamegithub.com
Nonecd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/15913#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15913
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2F15913
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/15913
Reloadhttps://github.com/python/cpython/pull/15913
Reloadhttps://github.com/python/cpython/pull/15913
Please reload this pagehttps://github.com/python/cpython/pull/15913
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/15913
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
brettcannonhttps://github.com/brettcannon
python:3.8https://github.com/python/cpython/tree/3.8
brettcannon:backport-92420b3-3.8https://github.com/brettcannon/cpython/tree/backport-92420b3-3.8
Conversationhttps://github.com/python/cpython/pull/15913
Commits1 (1)https://github.com/python/cpython/pull/15913/commits
Checkshttps://github.com/python/cpython/pull/15913/checks
Files changedhttps://github.com/python/cpython/pull/15913/files
[3.8] bpo-37409: fix relative import with no parent (GH-14956)https://github.com/python/cpython/pull/15913#top
brettcannonhttps://github.com/brettcannon
python:3.8https://github.com/python/cpython/tree/3.8
brettcannon:backport-92420b3-3.8https://github.com/brettcannon/cpython/tree/backport-92420b3-3.8
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Sep 11, 2019https://github.com/python/cpython/pull/15913#issue-492157258
Please reload this pagehttps://github.com/python/cpython/pull/15913
92420b3https://github.com/python/cpython/commit/92420b3e679959a7d0ce875875601a4cee45231e
https://bugs.python.org/issue37409https://bugs.python.org/issue37409
@brettcannonhttps://github.com/brettcannon
Please reload this pagehttps://github.com/python/cpython/pull/15913
https://github.com/benjimin
https://github.com/brettcannon
[3.8] bpo-37409: fix relative import with no parent (https://github.com/python/cpython/pull/15913/commits/54f405f8a2e27d94c541105ba601e29d8e67dda8
pythonGH-14956https://github.com/python/cpython/pull/14956
)https://github.com/python/cpython/pull/15913/commits/54f405f8a2e27d94c541105ba601e29d8e67dda8
54f405fhttps://github.com/python/cpython/pull/15913/commits/54f405f8a2e27d94c541105ba601e29d8e67dda8
92420b3https://github.com/brettcannon/cpython/commit/92420b3e679959a7d0ce875875601a4cee45231e
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
needs backport to 3.7 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.7%22
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625246044
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
encukouhttps://github.com/encukou
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
ncoghlanhttps://github.com/ncoghlan
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/4601f7a49fe8ed00c4b6b70b0eda2b3922568e9b/.github/CODEOWNERS#L35
September 11, 2019 10:40https://github.com/python/cpython/pull/15913#event-2625246053
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625246066
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625246182
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 11, 2019 https://github.com/python/cpython/pull/15913#ref-pullrequest-473240654
bpo-37409: fix relative import with no parent #14956 https://github.com/python/cpython/pull/14956
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625246345
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625246382
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
0a6693ahttps://github.com/python/cpython/commit/0a6693a469cfb1dd5c8048d8cb4231a7b5883251
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625391858
https://github.com/brettcannon
brettcannonhttps://github.com/brettcannon
September 11, 2019 11:38https://github.com/python/cpython/pull/15913#event-2625391887
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Sep 11, 2019https://github.com/python/cpython/pull/15913#issuecomment-530341896
@brettcannonhttps://github.com/brettcannon
Please reload this pagehttps://github.com/python/cpython/pull/15913
miss-islingtonhttps://github.com/miss-islington
Sep 11, 2019 https://github.com/python/cpython/pull/15913#ref-commit-a1c713c
https://github.com/brettcannon
https://github.com/miss-islington
[3.8] bpo-37409: fix relative import with no parent (https://github.com/miss-islington/cpython/commit/a1c713c995a5a3c8208ad056c1d05bb906a49a95
pythonGH-14956https://github.com/python/cpython/pull/14956
) (https://github.com/miss-islington/cpython/commit/a1c713c995a5a3c8208ad056c1d05bb906a49a95
p…https://github.com/python/cpython/pull/15913
a1c713chttps://github.com/miss-islington/cpython/commit/a1c713c995a5a3c8208ad056c1d05bb906a49a95
…ythonGH-15913https://github.com/python/cpython/pull/15913
92420b3https://github.com/miss-islington/cpython/commit/92420b3e679959a7d0ce875875601a4cee45231e
0a6693ahttps://github.com/miss-islington/cpython/commit/0a6693a469cfb1dd5c8048d8cb4231a7b5883251
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 11, 2019https://github.com/python/cpython/pull/15913#issuecomment-530341936
GH-15925https://github.com/python/cpython/pull/15925
3.7 branchhttps://github.com/python/cpython/tree/3.7
Please reload this pagehttps://github.com/python/cpython/pull/15913
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.7 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.7%22
Sep 11, 2019https://github.com/python/cpython/pull/15913#event-2625392302
miss-islingtonhttps://github.com/miss-islington
Sep 11, 2019 https://github.com/python/cpython/pull/15913#ref-commit-f3480ad
https://github.com/miss-islington
https://github.com/brettcannon
[3.8]https://github.com/python/cpython/commit/f3480ad08823a9bc7df490bb5b54593d9483be70
bpo-37409https://bugs.python.org/issue?@action=redirect&bpo=37409
: fix relative import with no parent (https://github.com/python/cpython/commit/f3480ad08823a9bc7df490bb5b54593d9483be70
GH-14956https://github.com/python/cpython/pull/14956
) (https://github.com/python/cpython/commit/f3480ad08823a9bc7df490bb5b54593d9483be70
GH-15913https://github.com/python/cpython/pull/15913
f3480adhttps://github.com/python/cpython/commit/f3480ad08823a9bc7df490bb5b54593d9483be70
https://github.com/python/cpython/pull/15913
92420b3https://github.com/python/cpython/commit/92420b3e679959a7d0ce875875601a4cee45231e
0a6693ahttps://github.com/python/cpython/commit/0a6693a469cfb1dd5c8048d8cb4231a7b5883251
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15913
https://github.com/encukou
encukou https://github.com/encukou
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ncoghlan
ncoghlan https://github.com/ncoghlan
https://github.com/warsaw
warsaw https://github.com/warsaw
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Please reload this pagehttps://github.com/python/cpython/pull/15913
https://github.com/brettcannon
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/the-knights-who-say-ni
https://github.com/benjimin
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.