Title: gh-145478: Implement `frozendict` into `functools.partial` by brijkapadia · Pull Request #145960 · python/cpython · GitHub
Open Graph Title: gh-145478: Implement `frozendict` into `functools.partial` by brijkapadia · Pull Request #145960 · python/cpython
X Title: gh-145478: Implement `frozendict` into `functools.partial` by brijkapadia · Pull Request #145960 · python/cpython
Description: Changes: partial.__setstate__ takes any dict for keywords and checks keywords to make sure that they are strings changed some tests to make sure they still make sense when working with a frozendict (rather than a dict) change pickle tests to use protocols 2+, but am not sure if this is the best solution or if there is a problem not using protocols 0 or 1. I made this change since frozendict does not work for these lower numbed protocols Issue: gh-145478 📚 Documentation preview 📚: https://cpython-previews--145960.org.readthedocs.build/
Open Graph Description: Changes: partial.__setstate__ takes any dict for keywords and checks keywords to make sure that they are strings changed some tests to make sure they still make sense when working with a frozendic...
X Description: Changes: partial.__setstate__ takes any dict for keywords and checks keywords to make sure that they are strings changed some tests to make sure they still make sense when working with a frozendic...
Opengraph URL: https://github.com/python/cpython/pull/145960
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a23e53e3-8c43-5c3d-2199-1aee9879462b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A408:150794:5EA94B:87E470:6A50FF87 |
| html-safe-nonce | a6316033242e41ea8a40ee08fba9d02be7505206774410d5bf8c36a54768f503 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDA4OjE1MDc5NDo1RUE5NEI6ODdFNDcwOjZBNTBGRjg3IiwidmlzaXRvcl9pZCI6IjU5NjU2MjU1NDA1OTc1Nzk2NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a4f8bd68117ce42f357c4a43438ec56be3d42bc1d33bd064b01ef79a485c3204 |
| hovercard-subject-tag | pull_request:3400437030 |
| 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/145960/files |
| twitter:image | https://avatars.githubusercontent.com/u/97006829?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/97006829?s=400&v=4 |
| og:image:alt | Changes: partial.__setstate__ takes any dict for keywords and checks keywords to make sure that they are strings changed some tests to make sure they still make sense when working with a frozendic... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| 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 | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width