Title: bpo-37417: Fix error handling in bytearray.extend. by brandtbucher · Pull Request #14407 · python/cpython · GitHub
Open Graph Title: bpo-37417: Fix error handling in bytearray.extend. by brandtbucher · Pull Request #14407 · python/cpython
X Title: bpo-37417: Fix error handling in bytearray.extend. by brandtbucher · Pull Request #14407 · python/cpython
Description: bytearray.extend doesn't properly handle errors that arise during iteration of the argument:
Python 3.9.0a0 (heads/master:5150d32, Jun 26 2019, 10:55:32)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> array = bytearray()
>>> bad_iter = map(int, "X")
>>> array.extend(bad_iter)
ValueError: invalid literal for int() with base 10: 'X'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "
Open Graph Description: bytearray.extend doesn't properly handle errors that arise during iteration of the argument: Python 3.9.0a0 (heads/master:5150d32, Jun 26 2019, 10:55:32) [GCC 5.4.0 20160609] on linux Type &qu...
X Description: bytearray.extend doesn't properly handle errors that arise during iteration of the argument: Python 3.9.0a0 (heads/master:5150d32, Jun 26 2019, 10:55:32) [GCC 5.4.0 20160609] on linux Type...
Opengraph URL: https://github.com/python/cpython/pull/14407
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d99eec73-e280-bd0d-69bd-b63cdaafc7ac |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BCF6:CBE15:D23DF8:12EDC4C:6A58D728 |
| html-safe-nonce | 34b5c7ca52662c6220ef888b9a820b53211c4246f67cba798ae4c13d7c9e319c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Y2OkNCRTE1OkQyM0RGODoxMkVEQzRDOjZBNThENzI4IiwidmlzaXRvcl9pZCI6IjU3NzY3NTE1MTc5NTYwNzMzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70e90bc9b4dd921de10ab2c845d99d5bd4a8676d34d90ea7006f995677eb34c7 |
| hovercard-subject-tag | pull_request:292105508 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python/cpython/pull/14407/files |
| twitter:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| og:image:alt | bytearray.extend doesn't properly handle errors that arise during iteration of the argument: Python 3.9.0a0 (heads/master:5150d32, Jun 26 2019, 10:55:32) [GCC 5.4.0 20160609] on linux Type &qu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width