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: 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 relative import I've changed the relative import test to use the plain module to cover it. If prefered I can split into two test cases (just felt there are too many test cases for the run as module functionality). Reported by @jaraco https://bugs.python.org/issue32691
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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c090670b-5365-8fcb-5ebd-652700b86b49 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C386:1960:2855899:3A407F6:6A4FB925 |
| html-safe-nonce | 0050efbc52e0bdd05d196cdc62ddf0d79e61bfc2597a7e6c2a3e18527ff318ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzg2OjE5NjA6Mjg1NTg5OTozQTQwN0Y2OjZBNEZCOTI1IiwidmlzaXRvcl9pZCI6IjQ2Nzc3MTgwMzcxMjU2NDI1MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2465106cb822f3821f2292954c58d89dd10ebeb8e19e3f7f7155ee41e439a434 |
| hovercard-subject-tag | pull_request:166577190 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/5474/files |
| twitter:image | https://avatars.githubusercontent.com/u/3709683?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3709683?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width