Title: execfile/exec execution in other than global scope uses locals(), leading to undefined behavior · Issue #60985 · python/cpython · GitHub
Open Graph Title: execfile/exec execution in other than global scope uses locals(), leading to undefined behavior · Issue #60985 · python/cpython
X Title: execfile/exec execution in other than global scope uses locals(), leading to undefined behavior · Issue #60985 · python/cpython
Description: BPO 16781 Nosy @terryjreedy, @benjaminp, @bitdancer, @miss-islington PRs #24469#24470#24471 Files b3.pya.pyb2.py Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state. Show ...
Open Graph Description: BPO 16781 Nosy @terryjreedy, @benjaminp, @bitdancer, @miss-islington PRs #24469#24470#24471 Files b3.pya.pyb2.py Note: these values reflect the state of the issue at the time it was migrated and mi...
X Description: BPO 16781 Nosy @terryjreedy, @benjaminp, @bitdancer, @miss-islington PRs #24469#24470#24471 Files b3.pya.pyb2.py Note: these values reflect the state of the issue at the time it was migrated and mi...
Opengraph URL: https://github.com/python/cpython/issues/60985
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"execfile/exec execution in other than global scope uses locals(), leading to undefined behavior","articleBody":"BPO | [16781](https://bugs.python.org/issue16781)\n--- | :---\nNosy | @terryjreedy, @benjaminp, @bitdancer, @miss-islington\nPRs | \u003cli\u003epython/cpython#24469\u003c/li\u003e\u003cli\u003epython/cpython#24470\u003c/li\u003e\u003cli\u003epython/cpython#24471\u003c/li\u003e\nFiles | \u003cli\u003e[b3.py](https://bugs.python.org/file28434/b3.py \"Uploaded as text/plain at 2012-12-26.00:15:47 by techtonik\")\u003c/li\u003e\u003cli\u003e[a.py](https://bugs.python.org/file28435/a.py \"Uploaded as text/plain at 2012-12-26.00:22:21 by techtonik\")\u003c/li\u003e\u003cli\u003e[b2.py](https://bugs.python.org/file28436/b2.py \"Uploaded as text/plain at 2012-12-26.00:22:29 by techtonik\")\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 = None\ncreated_at = \u003cDate 2012-12-26.00:15:50.597\u003e\nlabels = ['type-bug', '3.8', '3.9', '3.10', 'docs']\ntitle = 'execfile/exec execution in other than global scope uses locals(), leading to undefined behavior'\nupdated_at = \u003cDate 2021-02-07.14:14:23.542\u003e\nuser = 'https://bugs.python.org/techtonik'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2021-02-07.14:14:23.542\u003e\nactor = 'terry.reedy'\nassignee = 'docs@python'\nclosed = False\nclosed_date = None\ncloser = None\ncomponents = ['Documentation']\ncreation = \u003cDate 2012-12-26.00:15:50.597\u003e\ncreator = 'techtonik'\ndependencies = []\nfiles = ['28434', '28435', '28436']\nhgrepos = []\nissue_num = 16781\nkeywords = ['patch']\nmessage_count = 14.0\nmessages = ['178177', '178180', '178184', '178190', '178232', '178253', '178255', '178442', '178456', '178472', '386576', '386577', '386578', '386591']\nnosy_count = 7.0\nnosy_names = ['terry.reedy', 'techtonik', 'benjamin.peterson', 'Arfrever', 'r.david.murray', 'docs@python', 'miss-islington']\npr_nums = ['24469', '24470', '24471']\npriority = 'normal'\nresolution = None\nstage = 'needs patch'\nstatus = 'open'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue16781'\nversions = ['Python 3.8', 'Python 3.9', 'Python 3.10']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/techtonik","@type":"Person","name":"techtonik"},"datePublished":"2012-12-26T00:15:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/60985/cpython/issues/60985"}
| 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:1ff929bc-b7ae-c507-b3c9-f99d222bc885 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8572:382487:832EDA:AE9D41:6A598CB4 |
| html-safe-nonce | 156d31dd9c2cf24a4a45d6c255b3be5bc60fa5d3be725361a0af484c91937db2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTcyOjM4MjQ4Nzo4MzJFREE6QUU5RDQxOjZBNTk4Q0I0IiwidmlzaXRvcl9pZCI6IjE1NTc3MTM1MjAyMjc0NDg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 38962025ecbfc094bd1afb72f87abdceb112ed21569624efd35c1a039cca46f2 |
| hovercard-subject-tag | issue:1198892409 |
| 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/60985/issue_layout |
| twitter:image | https://opengraph.githubassets.com/012d4cfc0ae9d9a782a64142e676318d41cf76c984d9b2e345a55a3fc8b50674/python/cpython/issues/60985 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/012d4cfc0ae9d9a782a64142e676318d41cf76c984d9b2e345a55a3fc8b50674/python/cpython/issues/60985 |
| og:image:alt | BPO 16781 Nosy @terryjreedy, @benjaminp, @bitdancer, @miss-islington PRs #24469#24470#24471 Files b3.pya.pyb2.py Note: these values reflect the state of the issue at the time it was migrated and mi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | techtonik |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| 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 | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width