Title: typo in pickletools.py error message · Issue #139646 · python/cpython · GitHub
Open Graph Title: typo in pickletools.py error message · Issue #139646 · python/cpython
X Title: typo in pickletools.py error message · Issue #139646 · python/cpython
Description: Bug report Bug description: I searched code base and issue seems its a typo in error message strinq -> string diff --git a/Lib/pickletools.py b/Lib/pickletools.py index bcddfb722b..254b6c7fcc 100644 --- a/Lib/pickletools.py +++ b/Lib/pic...
Open Graph Description: Bug report Bug description: I searched code base and issue seems its a typo in error message strinq -> string diff --git a/Lib/pickletools.py b/Lib/pickletools.py index bcddfb722b..254b6c7fcc 10064...
X Description: Bug report Bug description: I searched code base and issue seems its a typo in error message strinq -> string diff --git a/Lib/pickletools.py b/Lib/pickletools.py index bcddfb722b..254b6c7fcc 10...
Opengraph URL: https://github.com/python/cpython/issues/139646
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"typo in pickletools.py error message","articleBody":"# Bug report\n\n### Bug description:\n\nI searched code base and issue seems its a typo in error message\n\nstrinq -\u003e string\n\n```diff\ndiff --git a/Lib/pickletools.py b/Lib/pickletools.py\nindex bcddfb722b..254b6c7fcc 100644\n--- a/Lib/pickletools.py\n+++ b/Lib/pickletools.py\n@@ -348,7 +348,7 @@ def read_stringnl(f, decode=True, stripquotes=True, *, encoding='latin-1'):\n for q in (b'\"', b\"'\"):\n if data.startswith(q):\n if not data.endswith(q):\n- raise ValueError(\"strinq quote %r not found at both \"\n+ raise ValueError(\"string quote %r not found at both \"\n \"ends of %r\" % (q, data))\n data = data[1:-1]\n break\ndiff --git a/Lib/test/test_pickletools.py b/Lib/test/test_pickletools.py\nindex a178d3353e..cf99087462 100644\n--- a/Lib/test/test_pickletools.py\n+++ b/Lib/test/test_pickletools.py\n@@ -384,13 +384,13 @@ def test_string_without_quotes(self):\n self.check_dis_error(b'Sabc\"\\n.', '',\n \"no string quotes around b'abc\\\"'\")\n self.check_dis_error(b\"S'abc\\n.\", '',\n- '''strinq quote b\"'\" not found at both ends of b\"'abc\"''')\n+ '''string quote b\"'\" not found at both ends of b\"'abc\"''')\n self.check_dis_error(b'S\"abc\\n.', '',\n- r\"\"\"strinq quote b'\"' not found at both ends of b'\"abc'\"\"\")\n+ r\"\"\"string quote b'\"' not found at both ends of b'\"abc'\"\"\")\n self.check_dis_error(b\"S'abc\\\"\\n.\", '',\n- r\"\"\"strinq quote b\"'\" not found at both ends of b'\\\\'abc\"'\"\"\")\n+ r\"\"\"string quote b\"'\" not found at both ends of b'\\\\'abc\"'\"\"\")\n self.check_dis_error(b\"S\\\"abc'\\n.\", '',\n- r\"\"\"strinq quote b'\"' not found at both ends of b'\"abc\\\\''\"\"\")\n+ r\"\"\"string quote b'\"' not found at both ends of b'\"abc\\\\''\"\"\")\n \n def test_binstring(self):\n self.check_dis(b\"T\\x03\\x00\\x00\\x00abc.\", '''\\\n\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nmacOS\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139647\n* gh-139649 (backport held until 3.14.0 is released)\n* gh-139650 (backport held until 3.13.8 is released)\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/yihong0618","@type":"Person","name":"yihong0618"},"datePublished":"2025-10-06T10:21:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/139646/cpython/issues/139646"}
| 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:9c9127fd-49b5-acdf-965e-0f4620f3df60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD12:1E6D3F:1810CA8:200BB1D:6969ABEA |
| html-safe-nonce | 6e007d8a75ef206b9bdb50b3ff4754dd589cdccfc59ecc4b4147d264960bfa77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDEyOjFFNkQzRjoxODEwQ0E4OjIwMEJCMUQ6Njk2OUFCRUEiLCJ2aXNpdG9yX2lkIjoiNzIzODczMDIwNzM0MDM3NTAxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b115a17fa4d4407d7493fae67792e61d394ffb23f61dc507f6277a98457b5ae5 |
| hovercard-subject-tag | issue:3486570237 |
| 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/139646/issue_layout |
| twitter:image | https://opengraph.githubassets.com/be37d096b49bdd1d0445136034afa1df3eaca58dda59a87121887ef29b5ec694/python/cpython/issues/139646 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/be37d096b49bdd1d0445136034afa1df3eaca58dda59a87121887ef29b5ec694/python/cpython/issues/139646 |
| og:image:alt | Bug report Bug description: I searched code base and issue seems its a typo in error message strinq -> string diff --git a/Lib/pickletools.py b/Lib/pickletools.py index bcddfb722b..254b6c7fcc 10064... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yihong0618 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width