Title: More informative error handling when encoding and decoding · Issue #62028 · python/cpython · GitHub
Open Graph Title: More informative error handling when encoding and decoding · Issue #62028 · python/cpython
X Title: More informative error handling when encoding and decoding · Issue #62028 · python/cpython
Description: BPO 17828 Nosy @malemburg, @warsaw, @ncoghlan, @vstinner, @tiran, @ezio-melotti, @florentx Files issue17828-1.diffissue17828-2.diff: Proof of concept against default.issue17828_improved_codec_errors.diff: More robust patch, but the excep...
Open Graph Description: BPO 17828 Nosy @malemburg, @warsaw, @ncoghlan, @vstinner, @tiran, @ezio-melotti, @florentx Files issue17828-1.diffissue17828-2.diff: Proof of concept against default.issue17828_improved_codec_error...
X Description: BPO 17828 Nosy @malemburg, @warsaw, @ncoghlan, @vstinner, @tiran, @ezio-melotti, @florentx Files issue17828-1.diffissue17828-2.diff: Proof of concept against default.issue17828_improved_codec_error...
Opengraph URL: https://github.com/python/cpython/issues/62028
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"More informative error handling when encoding and decoding","articleBody":"BPO | [17828](https://bugs.python.org/issue17828)\n--- | :---\nNosy | @malemburg, @warsaw, @ncoghlan, @vstinner, @tiran, @ezio-melotti, @florentx\nFiles | \u003cli\u003e[issue17828-1.diff](https://bugs.python.org/file30189/issue17828-1.diff \"Uploaded as text/plain at 2013-05-10.03:22:36 by @ezio-melotti\")\u003c/li\u003e\u003cli\u003e[issue17828-2.diff](https://bugs.python.org/file30190/issue17828-2.diff \"Uploaded as text/plain at 2013-05-10.04:36:13 by @ezio-melotti\"): Proof of concept against default.\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors.diff](https://bugs.python.org/file32496/issue17828_improved_codec_errors.diff \"Uploaded as text/plain at 2013-11-04.13:00:08 by @ncoghlan\"): More robust patch, but the exception wrapping is still problematic\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors_v2.diff](https://bugs.python.org/file32497/issue17828_improved_codec_errors_v2.diff \"Uploaded as text/plain at 2013-11-04.13:20:18 by @ncoghlan\"): Still needs tests, but I like this version\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors_v3.diff](https://bugs.python.org/file32508/issue17828_improved_codec_errors_v3.diff \"Uploaded as text/plain at 2013-11-05.13:48:40 by @ncoghlan\"): Cleaner and more comprehensive implementation\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors_v4.diff](https://bugs.python.org/file32509/issue17828_improved_codec_errors_v4.diff \"Uploaded as text/plain at 2013-11-05.15:08:33 by @ncoghlan\"): Now with tests and What's New updates\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors_v5.diff](https://bugs.python.org/file32561/issue17828_improved_codec_errors_v5.diff \"Uploaded as text/plain at 2013-11-10.13:02:56 by @ncoghlan\"): Replaced whitelist with BaseException compatibility checks\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors_v6.diff](https://bugs.python.org/file32562/issue17828_improved_codec_errors_v6.diff \"Uploaded as text/plain at 2013-11-10.14:59:57 by @ncoghlan\"): Added parentheses in messages, removed debugging printf calls.\u003c/li\u003e\u003cli\u003e[issue17828_improved_codec_errors_v7.diff](https://bugs.python.org/file32595/issue17828_improved_codec_errors_v7.diff \"Uploaded as text/plain at 2013-11-13.13:32:31 by @ncoghlan\"): Moved exception chaining inside the codec machinery\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/ncoghlan'\nclosed_at = \u003cDate 2013-11-13.13:51:51.486\u003e\ncreated_at = \u003cDate 2013-04-24.14:09:58.905\u003e\nlabels = ['type-feature', 'library']\ntitle = 'More informative error handling when encoding and decoding'\nupdated_at = \u003cDate 2013-11-14.00:49:38.159\u003e\nuser = 'https://github.com/ncoghlan'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2013-11-14.00:49:38.159\u003e\nactor = 'christian.heimes'\nassignee = 'ncoghlan'\nclosed = True\nclosed_date = \u003cDate 2013-11-13.13:51:51.486\u003e\ncloser = 'python-dev'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2013-04-24.14:09:58.905\u003e\ncreator = 'ncoghlan'\ndependencies = []\nfiles = ['30189', '30190', '32496', '32497', '32508', '32509', '32561', '32562', '32595']\nhgrepos = []\nissue_num = 17828\nkeywords = ['patch']\nmessage_count = 27.0\nmessages = ['187704', '187706', '187761', '187763', '188804', '188807', '188808', '188809', '202125', '202129', '202131', '202133', '202143', '202178', '202211', '202212', '202215', '202522', '202524', '202528', '202529', '202532', '202744', '202748', '202807', '202811', '202812']\nnosy_count = 8.0\nnosy_names = ['lemburg', 'barry', 'ncoghlan', 'vstinner', 'christian.heimes', 'ezio.melotti', 'flox', 'python-dev']\npr_nums = []\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'enhancement'\nurl = 'https://bugs.python.org/issue17828'\nversions = ['Python 3.4']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/ncoghlan","@type":"Person","name":"ncoghlan"},"datePublished":"2013-04-24T14:09:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":27},"url":"https://github.com/62028/cpython/issues/62028"}
| 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:80c8c038-59bd-9c0c-fb96-8717111a909f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADAE:39CFC7:2133A29:2FF43BD:6A4D0D85 |
| html-safe-nonce | 78d7cf624481c95a0cf5bf293890ec63f17c7b8a04b5bad244612ca6774be436 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREFFOjM5Q0ZDNzoyMTMzQTI5OjJGRjQzQkQ6NkE0RDBEODUiLCJ2aXNpdG9yX2lkIjoiMTkyMjY3OTQ2MDg3MzQ0MDY0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ae1a1409cb21899513b7ad92741b0a12667dd58a46549a94037ca1b5101f1f14 |
| hovercard-subject-tag | issue:1198900010 |
| 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/62028/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ba79ec66c95c17c9a8583c3a60b6945357bd4011d74cb197756645409ec52df/python/cpython/issues/62028 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ba79ec66c95c17c9a8583c3a60b6945357bd4011d74cb197756645409ec52df/python/cpython/issues/62028 |
| og:image:alt | BPO 17828 Nosy @malemburg, @warsaw, @ncoghlan, @vstinner, @tiran, @ezio-melotti, @florentx Files issue17828-1.diffissue17828-2.diff: Proof of concept against default.issue17828_improved_codec_error... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ncoghlan |
| hostname | github.com |
| expected-hostname | github.com |
| None | bcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width