René's URL Explorer Experiment


Title: bpo-32691: Use mod_spec.parent when running modules with pdb by mariocj89 · Pull Request #5474 · python/cpython · GitHub

Open Graph Title: bpo-32691: Use mod_spec.parent when running modules with pdb by mariocj89 · Pull Request #5474 · python/cpython

X Title: bpo-32691: Use mod_spec.parent when running modules with pdb by mariocj89 · Pull Request #5474 · python/cpython

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

Open Graph Description: At the moment the module name is used, which breaks relative imports when pdb is run against a plain module or submodule. Fixes running python3 -m pdb -m plain.module when plain_module has a relati...

X Description: At the moment the module name is used, which breaks relative imports when pdb is run against a plain module or submodule. Fixes running python3 -m pdb -m plain.module when plain_module has a relati...

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

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:f41602a7-dfc5-0adf-23dc-d318a203c5d0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9DEC:B97C3:55532ED:77EACC8:6A4FA659
html-safe-nonce30864b2ca25b10a122e3b402401f173c37c0d6050dcf99f77c1b5f05c051b5a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REVDOkI5N0MzOjU1NTMyRUQ6NzdFQUNDODo2QTRGQTY1OSIsInZpc2l0b3JfaWQiOiI0MzUzNjM3MzE5ODQ2MTEwODA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8d693e6335762adfc033ae09b7beadf9a4c7be25d688052a5a86e1f9f092165b
hovercard-subject-tagpull_request:166577190
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/5474/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f4c61bd59a7a659fdf890a147f62a4122a66c51561b33fb3991311db9f506a1f/python/cpython/pull/5474
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4c61bd59a7a659fdf890a147f62a4122a66c51561b33fb3991311db9f506a1f/python/cpython/pull/5474
og:image:altAt the moment the module name is used, which breaks relative imports when pdb is run against a plain module or submodule. Fixes running python3 -m pdb -m plain.module when plain_module has a relati...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemariocj89
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/5474#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5474
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%2F5474
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/5474
Reloadhttps://github.com/python/cpython/pull/5474
Reloadhttps://github.com/python/cpython/pull/5474
Please reload this pagehttps://github.com/python/cpython/pull/5474
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/5474
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
mariocj89:pdb_fixhttps://github.com/mariocj89/cpython/tree/pdb_fix
Conversationhttps://github.com/python/cpython/pull/5474
Commits2 (2)https://github.com/python/cpython/pull/5474/commits
Checkshttps://github.com/python/cpython/pull/5474/checks
Files changedhttps://github.com/python/cpython/pull/5474/files
bpo-32691: Use mod_spec.parent when running modules with pdbhttps://github.com/python/cpython/pull/5474#top
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
mariocj89:pdb_fixhttps://github.com/mariocj89/cpython/tree/pdb_fix
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
Feb 1, 2018https://github.com/python/cpython/pull/5474#issue-293583438
Please reload this pagehttps://github.com/python/cpython/pull/5474
@jaracohttps://github.com/jaraco
https://bugs.python.org/issue32691https://bugs.python.org/issue32691
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/mariocj89
Use mod_spec.parent when running modules with pdbhttps://github.com/python/cpython/pull/5474/commits/6446c48e9770afb5ddd73c6fd25ba4f4bf399310
6446c48https://github.com/python/cpython/pull/5474/commits/6446c48e9770afb5ddd73c6fd25ba4f4bf399310
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
Feb 1, 2018https://github.com/python/cpython/pull/5474#event-1453282538
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Feb 1, 2018https://github.com/python/cpython/pull/5474#event-1453282557
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
force-pushedhttps://github.com/python/cpython/compare/ce770718b7de13a424fe69769c3e2b84f5a8b2e2..6446c48e9770afb5ddd73c6fd25ba4f4bf399310
ce77071https://github.com/python/cpython/commit/ce770718b7de13a424fe69769c3e2b84f5a8b2e2
6446c48https://github.com/python/cpython/commit/6446c48e9770afb5ddd73c6fd25ba4f4bf399310
Compare https://github.com/python/cpython/compare/ce770718b7de13a424fe69769c3e2b84f5a8b2e2..6446c48e9770afb5ddd73c6fd25ba4f4bf399310
February 1, 2018 15:58https://github.com/python/cpython/pull/5474#event-1453283274
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
Feb 1, 2018https://github.com/python/cpython/pull/5474#event-1453291353
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
needs backport to 3.7 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.7%22
Feb 2, 2018https://github.com/python/cpython/pull/5474#event-1454414204
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Feb 2, 2018 https://github.com/python/cpython/pull/5474#pullrequestreview-93520472
View reviewed changes https://github.com/python/cpython/pull/5474/files/6446c48e9770afb5ddd73c6fd25ba4f4bf399310
ncoghlanhttps://github.com/ncoghlan
https://github.com/python/cpython/pull/5474#pullrequestreview-93520472
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5474
Lib/pdb.pyhttps://github.com/python/cpython/pull/5474/files/6446c48e9770afb5ddd73c6fd25ba4f4bf399310#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
ncoghlanhttps://github.com/ncoghlan
Feb 2, 2018https://github.com/python/cpython/pull/5474#discussion_r165559498
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5474
Lib/test/test_pdb.pyhttps://github.com/python/cpython/pull/5474/files/6446c48e9770afb5ddd73c6fd25ba4f4bf399310#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
ncoghlanhttps://github.com/ncoghlan
Feb 2, 2018https://github.com/python/cpython/pull/5474#discussion_r165559989
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5474
mariocj89https://github.com/mariocj89
Feb 2, 2018https://github.com/python/cpython/pull/5474#discussion_r165703798
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Feb 2, 2018https://github.com/python/cpython/pull/5474#event-1454422897
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 2, 2018https://github.com/python/cpython/pull/5474#issuecomment-362489040
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/mariocj89
Add a test specific to __main__ vs main modulehttps://github.com/python/cpython/pull/5474/commits/0b4954363de5670c314b06cc4e739a18324cd125
0b49543https://github.com/python/cpython/pull/5474/commits/0b4954363de5670c314b06cc4e739a18324cd125
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
Feb 2, 2018https://github.com/python/cpython/pull/5474#issuecomment-362646587
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 2, 2018https://github.com/python/cpython/pull/5474#issuecomment-362646597
@ncoghlanhttps://github.com/ncoghlan
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Feb 2, 2018https://github.com/python/cpython/pull/5474#event-1455506676
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
38bfa84https://github.com/python/cpython/commit/38bfa8418f5d39bcc7478b8f7aef4a632c26172e
Feb 3, 2018https://github.com/python/cpython/pull/5474#event-1456308109
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Feb 3, 2018https://github.com/python/cpython/pull/5474#issuecomment-362785098
@mariocj89https://github.com/mariocj89
@ncoghlanhttps://github.com/ncoghlan
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting change review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20change%20review%22
needs backport to 3.7 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.7%22
Feb 3, 2018https://github.com/python/cpython/pull/5474#event-1456308130
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 3, 2018https://github.com/python/cpython/pull/5474#issuecomment-362785153
GH-5510https://github.com/python/cpython/pull/5510
3.7 branchhttps://github.com/python/cpython/tree/3.7
Please reload this pagehttps://github.com/python/cpython/pull/5474
miss-islingtonhttps://github.com/miss-islington
Feb 3, 2018 https://github.com/python/cpython/pull/5474#ref-commit-a8b9f4b
https://github.com/mariocj89
https://github.com/miss-islington
bpo-32691: Use mod_spec.parent when running modules with pdb (https://github.com/miss-islington/cpython/commit/a8b9f4b6c040695b58bb78fcdea235163ae36020
pythonG…https://github.com/python/cpython/pull/5474
a8b9f4bhttps://github.com/miss-islington/cpython/commit/a8b9f4b6c040695b58bb78fcdea235163ae36020
…H-5474https://github.com/python/cpython/pull/5474
38bfa84https://github.com/miss-islington/cpython/commit/38bfa8418f5d39bcc7478b8f7aef4a632c26172e
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Feb 3, 2018https://github.com/python/cpython/pull/5474#issuecomment-362785223
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
February 3, 2018 11:31https://github.com/python/cpython/pull/5474#event-1456376990
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
Jul 28, 2018 https://github.com/python/cpython/pull/5474#ref-pullrequest-286586598
bpo-32512: Add -m option to profile for profiling modules #5132 https://github.com/python/cpython/pull/5132
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
Jul 28, 2018https://github.com/python/cpython/pull/5474#issuecomment-408614647
@ncoghlanhttps://github.com/ncoghlan
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/ncoghlan
ncoghlanhttps://github.com/ncoghlan
Jul 28, 2018https://github.com/python/cpython/pull/5474#issuecomment-408620979
@mariocj89https://github.com/mariocj89
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/mariocj89
mariocj89https://github.com/mariocj89
Jul 28, 2018https://github.com/python/cpython/pull/5474#issuecomment-408626078
herehttps://github.com/python/cpython/pull/5474#discussion_r165703798
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/jaraco
jaracohttps://github.com/jaraco
Aug 11, 2018https://github.com/python/cpython/pull/5474#issuecomment-412282562
@mariocj89https://github.com/mariocj89
Please reload this pagehttps://github.com/python/cpython/pull/5474
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%2F5474
https://github.com/ncoghlan
ncoghlan https://github.com/ncoghlan
https://github.com/python/cpython/pull/5474/files/6446c48e9770afb5ddd73c6fd25ba4f4bf399310
Please reload this pagehttps://github.com/python/cpython/pull/5474
https://github.com/mariocj89
https://github.com/bedevere-bot
https://github.com/miss-islington
https://github.com/ncoghlan
https://github.com/jaraco
https://github.com/the-knights-who-say-ni
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.