Title: "if 0: return" not raising SyntaxError · Issue #46183 · python/cpython · GitHub
Open Graph Title: "if 0: return" not raising SyntaxError · Issue #46183 · python/cpython
X Title: "if 0: return" not raising SyntaxError · Issue #46183 · python/cpython
Description: BPO 1875 Nosy @amauryfa, @mdickinson, @cfbolz, @benjaminp, @ned-deily, @serhiy-storchaka, @matrixise, @pablogsal, @miss-islington PRs #13332#13382#14116 Files x.pyreturn_outside_func.patch Note: these values reflect the state of the issu...
Open Graph Description: BPO 1875 Nosy @amauryfa, @mdickinson, @cfbolz, @benjaminp, @ned-deily, @serhiy-storchaka, @matrixise, @pablogsal, @miss-islington PRs #13332#13382#14116 Files x.pyreturn_outside_func.patch Note: th...
X Description: BPO 1875 Nosy @amauryfa, @mdickinson, @cfbolz, @benjaminp, @ned-deily, @serhiy-storchaka, @matrixise, @pablogsal, @miss-islington PRs #13332#13382#14116 Files x.pyreturn_outside_func.patch Note: th...
Opengraph URL: https://github.com/python/cpython/issues/46183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"if 0: return\" not raising SyntaxError","articleBody":"BPO | [1875](https://bugs.python.org/issue1875)\n--- | :---\nNosy | @amauryfa, @mdickinson, @cfbolz, @benjaminp, @ned-deily, @serhiy-storchaka, @matrixise, @pablogsal, @miss-islington\nPRs | \u003cli\u003epython/cpython#13332\u003c/li\u003e\u003cli\u003epython/cpython#13382\u003c/li\u003e\u003cli\u003epython/cpython#14116\u003c/li\u003e\nFiles | \u003cli\u003e[x.py](https://bugs.python.org/file9231/x.py \"Uploaded as text/plain at 2008-01-19.18:55:49 by @arigo\")\u003c/li\u003e\u003cli\u003e[return_outside_func.patch](https://bugs.python.org/file12926/return_outside_func.patch \"Uploaded as text/plain at 2009-02-02.23:48:23 by @amauryfa\")\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/amauryfa'\nclosed_at = \u003cDate 2019-12-02.22:41:47.934\u003e\ncreated_at = \u003cDate 2008-01-19.18:55:49.322\u003e\nlabels = ['interpreter-core', '3.8', 'type-bug', '3.7']\ntitle = '\"if 0: return\" not raising SyntaxError'\nupdated_at = \u003cDate 2019-12-02.22:41:47.933\u003e\nuser = 'https://github.com/arigo'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2019-12-02.22:41:47.933\u003e\nactor = 'pablogsal'\nassignee = 'amaury.forgeotdarc'\nclosed = True\nclosed_date = \u003cDate 2019-12-02.22:41:47.934\u003e\ncloser = 'pablogsal'\ncomponents = ['Interpreter Core']\ncreation = \u003cDate 2008-01-19.18:55:49.322\u003e\ncreator = 'arigo'\ndependencies = []\nfiles = ['9231', '12926']\nhgrepos = []\nissue_num = 1875\nkeywords = ['patch', 'needs review']\nmessage_count = 15.0\nmessages = ['60213', '61638', '80955', '80961', '81019', '81023', '116917', '342464', '342525', '342555', '342559', '342705', '342706', '345684', '347350']\nnosy_count = 12.0\nnosy_names = ['amaury.forgeotdarc', 'mark.dickinson', 'fijal', 'Carl.Friedrich.Bolz', 'benjamin.peterson', 'ned.deily', 'Arfrever', 'mastrodomenico', 'serhiy.storchaka', 'matrixise', 'pablogsal', 'miss-islington']\npr_nums = ['13332', '13382', '14116']\npriority = 'low'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue1875'\nversions = ['Python 3.7', 'Python 3.8']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/arigo","@type":"Person","name":"arigo"},"datePublished":"2008-01-19T18:55:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/46183/cpython/issues/46183"}
| 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:7ff2eb2a-fd25-148b-b271-3b802291a423 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE82:1A6FEB:24BA672:3229146:6A543598 |
| html-safe-nonce | eeab7ee3137f5c763ad3125b3cc0f5696936481c72c006056fe8d219d0f9d556 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTgyOjFBNkZFQjoyNEJBNjcyOjMyMjkxNDY6NkE1NDM1OTgiLCJ2aXNpdG9yX2lkIjoiMzkxMjEwNjExMzM1Nzg1NDEwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8a566220b89209d097b402f55ca2f125081d630145bd674607ef8f127df49346 |
| hovercard-subject-tag | issue:1198827544 |
| 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/46183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/530d0cfac82c98a14ec66f3c1b693b408a52594134529458d07885030d9ce6e3/python/cpython/issues/46183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/530d0cfac82c98a14ec66f3c1b693b408a52594134529458d07885030d9ce6e3/python/cpython/issues/46183 |
| og:image:alt | BPO 1875 Nosy @amauryfa, @mdickinson, @cfbolz, @benjaminp, @ned-deily, @serhiy-storchaka, @matrixise, @pablogsal, @miss-islington PRs #13332#13382#14116 Files x.pyreturn_outside_func.patch Note: th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arigo |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width