Title: gh-123471: Make itertools.zip_longest safe in the FT build by eendebakpt · Pull Request #146033 · python/cpython · GitHub
Open Graph Title: gh-123471: Make itertools.zip_longest safe in the FT build by eendebakpt · Pull Request #146033 · python/cpython
X Title: gh-123471: Make itertools.zip_longest safe in the FT build by eendebakpt · Pull Request #146033 · python/cpython
Description: ziplongest_next is not thread safe due to setting the iterators in lz->ittuple to NULL on exhaustion. In addition, the lz->numactive is mutable state. The usual approach to making the iterators in this module thread-safe by not setting the underlying iterator to NULL is not working here, since the NULL value is used as a signal (e.g. the check it == NULL). We therefore make the iterator safe using a critical section. Issue: gh-123471
Open Graph Description: ziplongest_next is not thread safe due to setting the iterators in lz->ittuple to NULL on exhaustion. In addition, the lz->numactive is mutable state. The usual approach to making the iterato...
X Description: ziplongest_next is not thread safe due to setting the iterators in lz->ittuple to NULL on exhaustion. In addition, the lz->numactive is mutable state. The usual approach to making the...
Opengraph URL: https://github.com/python/cpython/pull/146033
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:126c48e6-ed1c-41db-d0e4-a4e110706eb5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AFD2:18C68E:ADB02B:E90C48:6A581A48 |
| html-safe-nonce | d7c528791b5e434daad803c4d18370e5eea9dd25a92d264dad6656540a6bf135 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkQyOjE4QzY4RTpBREIwMkI6RTkwQzQ4OjZBNTgxQTQ4IiwidmlzaXRvcl9pZCI6IjI2NzEwOTQyNzk3NTQ0ODgzOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b2895e899799d59cbf293e4f3e1b105b227742e89474218388b6e2b0de39afc3 |
| hovercard-subject-tag | pull_request:3405721366 |
| 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/146033/files |
| twitter:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/883786?s=400&v=4 |
| og:image:alt | ziplongest_next is not thread safe due to setting the iterators in lz->ittuple to NULL on exhaustion. In addition, the lz->numactive is mutable state. The usual approach to making the iterato... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width