Title: Re-implement parts of imp in pure Python · Issue #58167 · python/cpython · GitHub
Open Graph Title: Re-implement parts of imp in pure Python · Issue #58167 · python/cpython
X Title: Re-implement parts of imp in pure Python · Issue #58167 · python/cpython
Description: BPO 13959 Nosy @brettcannon, @birkenfeld, @pitrou, @vstinner, @benjaminp, @merwok, @meadori, @ericsnowcurrently, @berkerpeksag PRs #4736 Dependencies bpo-2377: Replace import w/ importlib.importbpo-14605: Make import machinery explicitbp...
Open Graph Description: BPO 13959 Nosy @brettcannon, @birkenfeld, @pitrou, @vstinner, @benjaminp, @merwok, @meadori, @ericsnowcurrently, @berkerpeksag PRs #4736 Dependencies bpo-2377: Replace import w/ importlib.importbpo...
X Description: BPO 13959 Nosy @brettcannon, @birkenfeld, @pitrou, @vstinner, @benjaminp, @merwok, @meadori, @ericsnowcurrently, @berkerpeksag PRs #4736 Dependencies bpo-2377: Replace import w/ importlib.importbpo...
Opengraph URL: https://github.com/python/cpython/issues/58167
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Re-implement parts of imp in pure Python","articleBody":"BPO | [13959](https://bugs.python.org/issue13959)\n--- | :---\nNosy | @brettcannon, @birkenfeld, @pitrou, @vstinner, @benjaminp, @merwok, @meadori, @ericsnowcurrently, @berkerpeksag\nPRs | \u003cli\u003epython/cpython#4736\u003c/li\u003e\nDependencies | \u003cli\u003ebpo-2377: Replace __import__ w/ importlib.__import__\u003c/li\u003e\u003cli\u003ebpo-14605: Make import machinery explicit\u003c/li\u003e\u003cli\u003ebpo-14657: Avoid two importlib copies\u003c/li\u003e\u003cli\u003ebpo-15166: Implement imp.get_tag() using sys.implementation\u003c/li\u003e\u003cli\u003ebpo-15167: Re-implement imp.get_magic() in pure Python\u003c/li\u003e\nFiles | \u003cli\u003e[imp.diff](https://bugs.python.org/file24846/imp.diff \"Uploaded as text/plain at 2012-03-14.20:52:28 by @brettcannon\")\u003c/li\u003e\u003cli\u003e[imp.diff](https://bugs.python.org/file24979/imp.diff \"Uploaded as text/plain at 2012-03-21.05:42:31 by @ericsnowcurrently\")\u003c/li\u003e\u003cli\u003e[use_of_imp.txt](https://bugs.python.org/file24980/use_of_imp.txt \"Uploaded as text/plain at 2012-03-21.05:43:31 by @ericsnowcurrently\"): stdlib modules that use imp (could be refactored to use importlib)\u003c/li\u003e\u003cli\u003e[imp_find_module.diff](https://bugs.python.org/file25250/imp_find_module.diff \"Uploaded as text/plain at 2012-04-17.05:57:45 by @ericsnowcurrently\"): sketch of find_module() implementation\u003c/li\u003e\u003cli\u003e[issue13959_reload.diff](https://bugs.python.org/file25302/issue13959_reload.diff \"Uploaded as text/plain at 2012-04-22.07:41:32 by @ericsnowcurrently\"): port of _imp.reload() to imp.py\u003c/li\u003e\u003cli\u003e[issue13959_magic_and_tag.diff](https://bugs.python.org/file25303/issue13959_magic_and_tag.diff \"Uploaded as text/plain at 2012-04-22.10:40:21 by @ericsnowcurrently\"): one approach to moving the magic and tag code out of import.c\u003c/li\u003e\u003cli\u003e[explicit_meta_path.diff](https://bugs.python.org/file25308/explicit_meta_path.diff \"Uploaded as text/plain at 2012-04-23.04:22:26 by @brettcannon\")\u003c/li\u003e\u003cli\u003e[explicit_path_hooks.diff](https://bugs.python.org/file25309/explicit_path_hooks.diff \"Uploaded as text/plain at 2012-04-23.04:22:51 by @brettcannon\")\u003c/li\u003e\u003cli\u003e[issue13959_magic.diff](https://bugs.python.org/file25335/issue13959_magic.diff \"Uploaded as text/plain at 2012-04-24.05:38:28 by @ericsnowcurrently\"): porting MAGIC to importlib\u003c/li\u003e\u003cli\u003e[issue13959_tag.diff](https://bugs.python.org/file25336/issue13959_tag.diff \"Uploaded as text/plain at 2012-04-24.05:40:09 by @ericsnowcurrently\"): porting TAG to importlib\u003c/li\u003e\u003cli\u003e[imptest.py](https://bugs.python.org/file25834/imptest.py \"Uploaded as text/plain at 2012-06-05.18:49:09 by jpe\")\u003c/li\u003e\u003cli\u003e[issue13959_get_tag.diff](https://bugs.python.org/file26058/issue13959_get_tag.diff \"Uploaded as text/plain at 2012-06-20.01:47:12 by @ericsnowcurrently\"): new TAG implementation using sys.implementation\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 = \u003cDate 2012-07-09.20:23:48.007\u003e\ncreated_at = \u003cDate 2012-02-07.00:51:29.679\u003e\nlabels = ['library', 'release-blocker']\ntitle = 'Re-implement parts of imp in pure Python'\nupdated_at = \u003cDate 2017-12-06.16:25:57.617\u003e\nuser = 'https://github.com/brettcannon'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2017-12-06.16:25:57.617\u003e\nactor = 'vstinner'\nassignee = 'brett.cannon'\nclosed = True\nclosed_date = \u003cDate 2012-07-09.20:23:48.007\u003e\ncloser = 'brett.cannon'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2012-02-07.00:51:29.679\u003e\ncreator = 'brett.cannon'\ndependencies = ['2377', '14605', '14657', '15166', '15167']\nfiles = ['24846', '24979', '24980', '25250', '25302', '25303', '25308', '25309', '25335', '25336', '25834', '26058']\nhgrepos = []\nissue_num = 13959\nkeywords = ['patch']\nmessage_count = 76.0\nmessages = ['152800', '155790', '156473', '156474', '156475', '156527', '156530', '156964', '158269', '158362', '158364', '158365', '158370', '158371', '158377', '158383', '158398', '158474', '158522', '158531', '158555', '158575', '158593', '158594', '158622', '158628', '158704', '158895', '158908', '158930', '158931', '158939', '158941', '158951', '158955', '158968', '158971', '158985', '158986', '158995', '158998', '158999', '159118', '159119', '159628', '159630', '159631', '159641', '159644', '159757', '159758', '159960', '159962', '159969', '160424', '160433', '160434', '160439', '160493', '160495', '160524', '162276', '162356', '162357', '162364', '162384', '162940', '163212', '163232', '163569', '163798', '164102', '165116', '165120', '165148', '307747']\nnosy_count = 12.0\nnosy_names = ['brett.cannon', 'georg.brandl', 'jpe', 'pitrou', 'vstinner', 'benjamin.peterson', 'eric.araujo', 'Arfrever', 'meador.inge', 'python-dev', 'eric.snow', 'berker.peksag']\npr_nums = ['4736']\npriority = 'release blocker'\nresolution = 'fixed'\nstage = 'needs patch'\nstatus = 'closed'\nsuperseder = None\ntype = None\nurl = 'https://bugs.python.org/issue13959'\nversions = ['Python 3.3']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/brettcannon","@type":"Person","name":"brettcannon"},"datePublished":"2012-02-07T00:51:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":76},"url":"https://github.com/58167/cpython/issues/58167"}
| 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:2b712f2e-514c-53ed-03ad-6d299e1c17da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDAC:1960:24DDD6D:3548B69:6A4FAE26 |
| html-safe-nonce | d3db9be37f075333c82b7cda53e1388b5a592649f172162f1bcb4fe975603832 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREFDOjE5NjA6MjREREQ2RDozNTQ4QjY5OjZBNEZBRTI2IiwidmlzaXRvcl9pZCI6IjMxNDI1NDYyOTQzMDU2OTczMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f73dee9c8c10f8c850edc0101b13119bfac85bfc774e12d01ee8365e51c9af99 |
| hovercard-subject-tag | issue:1198877375 |
| 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/58167/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ba17bae524555bba61b62a110d47a7a837ea55a6c49f630306f3592e08e9a93b/python/cpython/issues/58167 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ba17bae524555bba61b62a110d47a7a837ea55a6c49f630306f3592e08e9a93b/python/cpython/issues/58167 |
| og:image:alt | BPO 13959 Nosy @brettcannon, @birkenfeld, @pitrou, @vstinner, @benjaminp, @merwok, @meadori, @ericsnowcurrently, @berkerpeksag PRs #4736 Dependencies bpo-2377: Replace import w/ importlib.importbpo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brettcannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width