Title: imp.new_module does not function correctly if the module is returned from a function and used directly · Issue #51389 · python/cpython · GitHub
Open Graph Title: imp.new_module does not function correctly if the module is returned from a function and used directly · Issue #51389 · python/cpython
X Title: imp.new_module does not function correctly if the module is returned from a function and used directly · Issue #51389 · python/cpython
Description: BPO 7140 Nosy @terryjreedy, @pitrou, @benjaminp Superseder bpo-18214: Stop purging modules which are garbage collected before shutdown Files testcase.py: Testcase demonstrating the issue.testcase.py Note: these values reflect the state o...
Open Graph Description: BPO 7140 Nosy @terryjreedy, @pitrou, @benjaminp Superseder bpo-18214: Stop purging modules which are garbage collected before shutdown Files testcase.py: Testcase demonstrating the issue.testcase.p...
X Description: BPO 7140 Nosy @terryjreedy, @pitrou, @benjaminp Superseder bpo-18214: Stop purging modules which are garbage collected before shutdown Files testcase.py: Testcase demonstrating the issue.testcase.p...
Opengraph URL: https://github.com/python/cpython/issues/51389
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"imp.new_module does not function correctly if the module is returned from a function and used directly","articleBody":"BPO | [7140](https://bugs.python.org/issue7140)\n--- | :---\nNosy | @terryjreedy, @pitrou, @benjaminp\nSuperseder | \u003cli\u003ebpo-18214: Stop purging modules which are garbage collected before shutdown\u003c/li\u003e\nFiles | \u003cli\u003e[testcase.py](https://bugs.python.org/file15133/testcase.py \"Uploaded as text/plain at 2009-10-15.11:24:50 by jkp\"): Testcase demonstrating the issue.\u003c/li\u003e\u003cli\u003e[testcase.py](https://bugs.python.org/file15134/testcase.py \"Uploaded as text/plain at 2009-10-15.11:34:07 by jkp\")\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 = None\nclosed_at = \u003cDate 2013-07-31.09:36:01.655\u003e\ncreated_at = \u003cDate 2009-10-15.11:24:51.053\u003e\nlabels = ['type-bug', 'library']\ntitle = 'imp.new_module does not function correctly if the module is returned from a function and used directly'\nupdated_at = \u003cDate 2013-07-31.09:36:01.653\u003e\nuser = 'https://bugs.python.org/jkp'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2013-07-31.09:36:01.653\u003e\nactor = 'pitrou'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2013-07-31.09:36:01.655\u003e\ncloser = 'pitrou'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2009-10-15.11:24:51.053\u003e\ncreator = 'jkp'\ndependencies = []\nfiles = ['15133', '15134']\nhgrepos = []\nissue_num = 7140\nkeywords = []\nmessage_count = 7.0\nmessages = ['94082', '94083', '94095', '118480', '118819', '121213', '193992']\nnosy_count = 5.0\nnosy_names = ['terry.reedy', 'pitrou', 'benjamin.peterson', 'jkp', 'Arfrever']\npr_nums = []\npriority = 'normal'\nresolution = 'duplicate'\nstage = None\nstatus = 'closed'\nsuperseder = '18214'\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue7140'\nversions = ['Python 3.1', 'Python 2.7', 'Python 3.2']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/jkp","@type":"Person","name":"jkp"},"datePublished":"2009-10-15T11:24:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/51389/cpython/issues/51389"}
| 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:2603a854-a7e6-efba-4ddc-1d2bafd5072e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9404:15921E:4F91C2:718C6B:6A572F88 |
| html-safe-nonce | 903f272d012b8c84dbfb51498756115c847d8a07961267f301deb0b14afaad07 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDA0OjE1OTIxRTo0RjkxQzI6NzE4QzZCOjZBNTcyRjg4IiwidmlzaXRvcl9pZCI6IjI4OTc5MTY1NzA3MTc1OTc1NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 440a43e76055f797637f4fb186932750d584b7d516ca0470965e880ec3d09946 |
| hovercard-subject-tag | issue:1198849006 |
| 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/51389/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6698cf0afe96c30d3ea75412661e364798fe3df75bc708f47174d42de17bb2ae/python/cpython/issues/51389 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6698cf0afe96c30d3ea75412661e364798fe3df75bc708f47174d42de17bb2ae/python/cpython/issues/51389 |
| og:image:alt | BPO 7140 Nosy @terryjreedy, @pitrou, @benjaminp Superseder bpo-18214: Stop purging modules which are garbage collected before shutdown Files testcase.py: Testcase demonstrating the issue.testcase.p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jkp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width