Title: bpo-43224: Implement pickling of TypeVarTuples by mrahtz · Pull Request #32119 · python/cpython · GitHub
Open Graph Title: bpo-43224: Implement pickling of TypeVarTuples by mrahtz · Pull Request #32119 · python/cpython
X Title: bpo-43224: Implement pickling of TypeVarTuples by mrahtz · Pull Request #32119 · python/cpython
Description: Guess who learned a whole bunch about how pickling works :) Notes: I was a bit horrified to realise that the class I'd renamed to _BoundVarianceMixin also contains a key ingredient for pickling of things that use it! I've refactored its __reduce__ into a separate mixin for clarity. I'm not entirely sure whether these tests make sense - is assertEqual a reasonable way of testing this functionality? Am I correct in thinking we do need to test both assertEqual and assertIs for TypeVarTuples and unpacked TypeVarTuples? This PR doesn't include implementation of pickling support for unpacked native tuple; I'll do that in a future PR. (And I guess we'll also need to add tests for copy?) https://bugs.python.org/issue43224
Open Graph Description: Guess who learned a whole bunch about how pickling works :) Notes: I was a bit horrified to realise that the class I'd renamed to _BoundVarianceMixin also contains a key ingredient for picklin...
X Description: Guess who learned a whole bunch about how pickling works :) Notes: I was a bit horrified to realise that the class I'd renamed to _BoundVarianceMixin also contains a key ingredient for pic...
Opengraph URL: https://github.com/python/cpython/pull/32119
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:79630a2a-656d-cd38-77c2-690fa654d588 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E104:12343F:26EE99A:3353D3C:696B1B5B |
| html-safe-nonce | 7d225d9ea0b681caeda9e913a5fdb65b14ded7b66e721ba94be35aa9aeeaa3f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTA0OjEyMzQzRjoyNkVFOTlBOjMzNTNEM0M6Njk2QjFCNUIiLCJ2aXNpdG9yX2lkIjoiMjc0MzExOTc5MDM3MTE4MzQ1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f21ffbfdf54385475a8ab03272e06a825414b78c67f2e3c0876cd67d023806b3 |
| hovercard-subject-tag | pull_request:889945872 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/32119/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4431336?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4431336?s=400&v=4 |
| og:image:alt | Guess who learned a whole bunch about how pickling works :) Notes: I was a bit horrified to realise that the class I'd renamed to _BoundVarianceMixin also contains a key ingredient for picklin... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width