René's URL Explorer Experiment


Title: bpo-32206: Pdb can now run modules by mariocj89 · Pull Request #4752 · python/cpython · GitHub

Open Graph Title: bpo-32206: Pdb can now run modules by mariocj89 · Pull Request #4752 · python/cpython

X Title: bpo-32206: Pdb can now run modules by mariocj89 · Pull Request #4752 · python/cpython

Description: This change allows pdb to run modules and not only script. This is quite useful when working on "runnable" modules as there is no other way to run them at the moment. Example running unittest as a module $ ./python -m pdb -m unittest > /mnt/d/linux/cpython/Lib/unittest/__main__.py(3)() -> import sys (Pdb) c ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK The program exited via sys.exit(). Exit status: False > /mnt/d/linux/cpython/Lib/unittest/__main__.py(3)() -> import sys (Pdb) There is an alternative implementation using runpy._run_module_as_main by applying: mariocj89@e00c7b2 (It still has some issues to fix) https://bugs.python.org/issue32206

Open Graph Description: This change allows pdb to run modules and not only script. This is quite useful when working on "runnable" modules as there is no other way to run them at the moment. Example running unit...

X Description: This change allows pdb to run modules and not only script. This is quite useful when working on "runnable" modules as there is no other way to run them at the moment. Example runn...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c938d1a0-e0cb-460d-3179-472ba9b460c4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id93AA:FAECF:391D3:4BD49:6A524E6A
html-safe-noncecf65b06a4d180a3a1a2d5c89e74aba87efd3d5f074665e7a0adb205abaa684e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0FBOkZBRUNGOjM5MUQzOjRCRDQ5OjZBNTI0RTZBIiwidmlzaXRvcl9pZCI6IjIzNTkzNTUzNDc0NDIyNzQzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2532e8c8456efeeef052c645991602de21a795230f1e35ff4146c6723e986b79
hovercard-subject-tagpull_request:157093402
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/4752/files
twitter:imagehttps://avatars.githubusercontent.com/u/3709683?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3709683?s=400&v=4
og:image:altThis change allows pdb to run modules and not only script. This is quite useful when working on "runnable" modules as there is no other way to run them at the moment. Example running unit...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/4752/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F4752%2Ffiles
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%2F4752%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
Reloadhttps://github.com/python/cpython/pull/4752/files
Reloadhttps://github.com/python/cpython/pull/4752/files
Reloadhttps://github.com/python/cpython/pull/4752/files
Please reload this pagehttps://github.com/python/cpython/pull/4752/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/4752/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/cpython/tree/master
mariocj89:pdb_run_modulehttps://github.com/mariocj89/cpython/tree/pdb_run_module
Conversation 11 https://github.com/python/cpython/pull/4752
Commits 12 https://github.com/python/cpython/pull/4752/commits
Checks 0 https://github.com/python/cpython/pull/4752/checks
Files changed https://github.com/python/cpython/pull/4752/files
Please reload this pagehttps://github.com/python/cpython/pull/4752/files
bpo-32206: Pdb can now run modules https://github.com/python/cpython/pull/4752/files#top
Show all changes 12 commits https://github.com/python/cpython/pull/4752/files
f47d1b7 WIP: Run modules as script with pdb mariocj89 Dec 3, 2017 https://github.com/python/cpython/pull/4752/commits/f47d1b779333657d7d87b21db841d5d3ad6cfa5c
db73bf7 Fix pdb starting in runpy mariocj89 Dec 6, 2017 https://github.com/python/cpython/pull/4752/commits/db73bf77214150584f10b1a44d3db20e102d37a7
1d59520 fix infinite loop mariocj89 Dec 7, 2017 https://github.com/python/cpython/pull/4752/commits/1d59520313f19495eacbdea10deeb308ad903860
57c4ea1 Add news entry mariocj89 Dec 7, 2017 https://github.com/python/cpython/pull/4752/commits/57c4ea19aa31dc4cbecc1d559875d9cbfa52b410
e8788cd Fix running modules out of path mariocj89 Dec 7, 2017 https://github.com/python/cpython/pull/4752/commits/e8788cdbe4960f47f581d89af5ea61c32fcd3f8c
a0226bd Add further tests mariocj89 Dec 7, 2017 https://github.com/python/cpython/pull/4752/commits/a0226bd625e746ef07984f9a8557d5baebe213e9
2d38a6e Remove duplicated test mariocj89 Dec 13, 2017 https://github.com/python/cpython/pull/4752/commits/2d38a6e3ca28ee348533ee2fd4c1a044d66374bf
15ff839 Make test pass on windows mariocj89 Dec 13, 2017 https://github.com/python/cpython/pull/4752/commits/15ff83931e33827b5676ca9c3f0be62fe664aeac
7a1494a Add entry in Docs/Library/pdb mariocj89 Dec 13, 2017 https://github.com/python/cpython/pull/4752/commits/7a1494a32bf73867f0ed0ab38433ab63943b65f7
8134c27 Add entry in standard library docs section mariocj89 Jan 5, 2018 https://github.com/python/cpython/pull/4752/commits/8134c27f97ba05739b55a6a3c51921ac043bff22
6c4eed5 Rewording from Nick's review mariocj89 Jan 5, 2018 https://github.com/python/cpython/pull/4752/commits/6c4eed5d446a4d4dcda119cea89d8a191b80c056
d77dc87 Restructure pdb tests mariocj89 Jan 5, 2018 https://github.com/python/cpython/pull/4752/commits/d77dc8768f5aa7ea7b00772d57a5ba2193c2a499
Clear filters https://github.com/python/cpython/pull/4752/files
Please reload this pagehttps://github.com/python/cpython/pull/4752/files
Please reload this pagehttps://github.com/python/cpython/pull/4752/files
pdb.rst https://github.com/python/cpython/pull/4752/files#diff-03cb75fe4cee43d472cdf7d000745d71b0d137dddde696c7053d4c178cf2c0f1
3.7.rst https://github.com/python/cpython/pull/4752/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
pdb.py https://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
test_pdb.py https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
2017-12-07-13-14-40.bpo-32206.obm4OM.rst https://github.com/python/cpython/pull/4752/files#diff-43c011a84d05c8f75c977d181496ef47724292485a2a2c30655e134b388420fb
Doc/library/pdb.rsthttps://github.com/python/cpython/pull/4752/files#diff-03cb75fe4cee43d472cdf7d000745d71b0d137dddde696c7053d4c178cf2c0f1
View file https://github.com/mariocj89/cpython/blob/d77dc8768f5aa7ea7b00772d57a5ba2193c2a499/Doc/library/pdb.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4752/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4752/files#diff-03cb75fe4cee43d472cdf7d000745d71b0d137dddde696c7053d4c178cf2c0f1
https://github.com/python/cpython/pull/4752/files#diff-03cb75fe4cee43d472cdf7d000745d71b0d137dddde696c7053d4c178cf2c0f1
Doc/whatsnew/3.7.rsthttps://github.com/python/cpython/pull/4752/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
View file https://github.com/mariocj89/cpython/blob/d77dc8768f5aa7ea7b00772d57a5ba2193c2a499/Doc/whatsnew/3.7.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4752/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4752/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
https://github.com/python/cpython/pull/4752/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52
Lib/pdb.pyhttps://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
View file https://github.com/mariocj89/cpython/blob/d77dc8768f5aa7ea7b00772d57a5ba2193c2a499/Lib/pdb.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4752/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
https://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
https://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
https://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
https://github.com/python/cpython/pull/4752/files#diff-98d47941a1bfadcfdfe02973122c83be2940ca6f3b1c32ca8898e7f594d2669d
Lib/test/test_pdb.pyhttps://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
View file https://github.com/mariocj89/cpython/blob/d77dc8768f5aa7ea7b00772d57a5ba2193c2a499/Lib/test/test_pdb.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4752/{{ revealButtonHref }}
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
https://github.com/python/cpython/pull/4752/files#diff-62d496a5c437924e8e749b16d45e0b928917c424ba7deb45112f5a7a9450c6f5
Misc/NEWS.d/next/Library/2017-12-07-13-14-40.bpo-32206.obm4OM.rsthttps://github.com/python/cpython/pull/4752/files#diff-43c011a84d05c8f75c977d181496ef47724292485a2a2c30655e134b388420fb
View file https://github.com/mariocj89/cpython/blob/d77dc8768f5aa7ea7b00772d57a5ba2193c2a499/Misc/NEWS.d/next/Library/2017-12-07-13-14-40.bpo-32206.obm4OM.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/4752/{{ revealButtonHref }}
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.