Title: [Py3k] line number is wrong after encoding declaration · Issue #46637 · python/cpython · GitHub
Open Graph Title: [Py3k] line number is wrong after encoding declaration · Issue #46637 · python/cpython
X Title: [Py3k] line number is wrong after encoding declaration · Issue #46637 · python/cpython
Description: BPO 2384 Nosy @warsaw, @amauryfa, @pitrou, @vstinner Dependencies bpo-3975: PyTraceBack_Print() doesn't respect # coding: xxx header Files test_traceback.patchtokenizer-coding-4.patch: Fix this issue and add a testcase (for this issue an...
Open Graph Description: BPO 2384 Nosy @warsaw, @amauryfa, @pitrou, @vstinner Dependencies bpo-3975: PyTraceBack_Print() doesn't respect # coding: xxx header Files test_traceback.patchtokenizer-coding-4.patch: Fix this iss...
X Description: BPO 2384 Nosy @warsaw, @amauryfa, @pitrou, @vstinner Dependencies bpo-3975: PyTraceBack_Print() doesn't respect # coding: xxx header Files test_traceback.patchtokenizer-coding-4.patch: Fix this...
Opengraph URL: https://github.com/python/cpython/issues/46637
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Py3k] line number is wrong after encoding declaration","articleBody":"BPO | [2384](https://bugs.python.org/issue2384)\n--- | :---\nNosy | @warsaw, @amauryfa, @pitrou, @vstinner\nDependencies | \u003cli\u003ebpo-3975: PyTraceBack_Print() doesn\u0026#x27;t respect # coding: xxx header\u003c/li\u003e\nFiles | \u003cli\u003e[test_traceback.patch](https://bugs.python.org/file9943/test_traceback.patch \"Uploaded as text/plain at 2008-04-05.05:25:27 by ocean-city\")\u003c/li\u003e\u003cli\u003e[tokenizer-coding-4.patch](https://bugs.python.org/file11738/tokenizer-coding-4.patch \"Uploaded as text/plain at 2008-10-07.23:23:47 by @vstinner\"): Fix this issue and add a testcase (for this issue and issue 3975) (version 4)\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 2008-10-09.23:52:49.754\u003e\ncreated_at = \u003cDate 2008-03-18.07:28:38.119\u003e\nlabels = ['type-bug']\ntitle = '[Py3k] line number is wrong after encoding declaration'\nupdated_at = \u003cDate 2008-10-09.23:52:49.753\u003e\nuser = 'https://bugs.python.org/ocean-city'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2008-10-09.23:52:49.753\u003e\nactor = 'amaury.forgeotdarc'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2008-10-09.23:52:49.754\u003e\ncloser = 'amaury.forgeotdarc'\ncomponents = ['None']\ncreation = \u003cDate 2008-03-18.07:28:38.119\u003e\ncreator = 'ocean-city'\ndependencies = ['3975']\nfiles = ['9943', '11738']\nhgrepos = []\nissue_num = 2384\nkeywords = ['patch']\nmessage_count = 22.0\nmessages = ['63905', '64157', '64965', '67953', '71308', '71336', '72183', '73512', '73843', '73845', '73846', '73847', '73852', '73857', '73883', '73889', '73929', '74394', '74435', '74497', '74498', '74611']\nnosy_count = 7.0\nnosy_names = ['barry', 'amaury.forgeotdarc', 'pitrou', 'vstinner', 'ocean-city', 'jmfauth', 'dlitz']\npr_nums = []\npriority = 'high'\nresolution = 'fixed'\nstage = None\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue2384'\nversions = ['Python 3.0']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/ocean-city","@type":"Person","name":"ocean-city"},"datePublished":"2008-03-18T07:28:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/46637/cpython/issues/46637"}
| 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:bfb72e08-9382-1681-7511-bd955419e772 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED34:3BF792:EE5669:1440A44:6A4D5F4F |
| html-safe-nonce | a0756c53bb7861192f2bd75ec8ce522525a1c676f81de0937c856b38b38ba5bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDM0OjNCRjc5MjpFRTU2Njk6MTQ0MEE0NDo2QTRENUY0RiIsInZpc2l0b3JfaWQiOiI0NjI1NTAzNDYyNTc4MDIwMTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9d5f4187d29ed570ef7d7268f20d71a597b23d5ced6d32dffa16d2cf484e3c33 |
| hovercard-subject-tag | issue:1198829809 |
| 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/46637/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e43443b976207eb4577cb6355f53a6b6f2cde820b0d126522c33534784976b75/python/cpython/issues/46637 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e43443b976207eb4577cb6355f53a6b6f2cde820b0d126522c33534784976b75/python/cpython/issues/46637 |
| og:image:alt | BPO 2384 Nosy @warsaw, @amauryfa, @pitrou, @vstinner Dependencies bpo-3975: PyTraceBack_Print() doesn't respect # coding: xxx header Files test_traceback.patchtokenizer-coding-4.patch: Fix this iss... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ocean-city |
| hostname | github.com |
| expected-hostname | github.com |
| None | e6658d7c7808aeed776f841e0839b885fce343c9b96244be612c779298e7661e |
| 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 | a438513d3a22ffcd713795ed948c3e5525007665 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width