Title: update the import machinery to only use __spec__ · Issue #65961 · python/cpython · GitHub
Open Graph Title: update the import machinery to only use __spec__ · Issue #65961 · python/cpython
X Title: update the import machinery to only use __spec__ · Issue #65961 · python/cpython
Description: BPO 21762 Nosy @warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah Dependencies bpo-25791: Raise an ImportWarning when spec.parent/package isn't defined for a relative importbpo-42132: Use specs instead of just loader ...
Open Graph Description: BPO 21762 Nosy @warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah Dependencies bpo-25791: Raise an ImportWarning when spec.parent/package isn't defined for a relative importbpo-...
X Description: BPO 21762 Nosy @warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah Dependencies bpo-25791: Raise an ImportWarning when spec.parent/package isn't defined for a relative import...
Opengraph URL: https://github.com/python/cpython/issues/65961
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"update the import machinery to only use __spec__","articleBody":"BPO | [21762](https://bugs.python.org/issue21762)\n--- | :---\nNosy | @warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah\nDependencies | \u003cli\u003ebpo-25791: Raise an ImportWarning when __spec__.parent/__package__ isn\u0026#x27;t defined for a relative import\u003c/li\u003e\u003cli\u003ebpo-42132: Use specs instead of just __loader__ in C code\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/brettcannon'\nclosed_at = None\ncreated_at = \u003cDate 2014-06-14.21:33:51.833\u003e\nlabels = ['interpreter-core', 'type-feature']\ntitle = 'update the import machinery to only use __spec__'\nupdated_at = \u003cDate 2022-02-04.20:50:24.662\u003e\nuser = 'https://github.com/ericsnowcurrently'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2022-02-04.20:50:24.662\u003e\nactor = 'brett.cannon'\nassignee = 'brett.cannon'\nclosed = False\nclosed_date = None\ncloser = None\ncomponents = ['Interpreter Core']\ncreation = \u003cDate 2014-06-14.21:33:51.833\u003e\ncreator = 'eric.snow'\ndependencies = ['25791', '42132']\nfiles = []\nhgrepos = []\nissue_num = 21762\nkeywords = []\nmessage_count = 13.0\nmessages = ['220581', '220597', '220606', '220610', '258332', '258357', '258398', '258440', '258443', '258844', '258845', '379490', '412537']\nnosy_count = 5.0\nnosy_names = ['barry', 'brett.cannon', 'ncoghlan', 'eric.snow', 'nanjekyejoannah']\npr_nums = []\npriority = 'low'\nresolution = None\nstage = 'needs patch'\nstatus = 'open'\nsuperseder = None\ntype = 'enhancement'\nurl = 'https://bugs.python.org/issue21762'\nversions = ['Python 3.6']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-124377\n* gh-124380\n* gh-142046\n* gh-142055\n* gh-142165\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2014-06-14T21:33:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":28},"url":"https://github.com/65961/cpython/issues/65961"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3dfa857a-5ddc-3d26-faf9-a5f2c8379349 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB22:181900:236F51:2FAD01:6969CB2E |
| html-safe-nonce | e2fee212f8bafba74a91029c776c1e44637a9df39f010b5add9a388cbce75653 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjIyOjE4MTkwMDoyMzZGNTE6MkZBRDAxOjY5NjlDQjJFIiwidmlzaXRvcl9pZCI6IjkxMTI5MDgyODAwODg4NzM3NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a0996f9ca3af21be646adedc14a44d278d2913b9acf14136ba1a17901208290b |
| hovercard-subject-tag | issue:1198922271 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/65961/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20ab9e76d8e330fed41edb12b6b03050177635ef2a3d92fc3bf13d29817f164b/python/cpython/issues/65961 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20ab9e76d8e330fed41edb12b6b03050177635ef2a3d92fc3bf13d29817f164b/python/cpython/issues/65961 |
| og:image:alt | BPO 21762 Nosy @warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah Dependencies bpo-25791: Raise an ImportWarning when spec.parent/package isn't defined for a relative importbpo-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ericsnowcurrently |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width