Title: gh-142414: Make value, not identity, matter for UNBOUND* objects by encukou · Pull Request #145184 · python/cpython · GitHub
Open Graph Title: gh-142414: Make value, not identity, matter for UNBOUND* objects by encukou · Pull Request #145184 · python/cpython
X Title: gh-142414: Make value, not identity, matter for UNBOUND* objects by encukou · Pull Request #145184 · python/cpython
Description: I realize there's a pile of PRs for the issue already, I couldn't find a reason why the singletons (UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE) need to be singletons. Each is essentially a name for the underlying int (used in the C layer); plus UNBOUND doubles as the replacement value but that's not the issue here. I also couldn't find a reason to have different UNBOUND objects in different modules. This converts them to a normal class, and compares by value rather than identity. Issue: gh-142414
Open Graph Description: I realize there's a pile of PRs for the issue already, I couldn't find a reason why the singletons (UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE) need to be singletons. Each is essentially a name...
X Description: I realize there's a pile of PRs for the issue already, I couldn't find a reason why the singletons (UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE) need to be singletons. Each is essentiall...
Opengraph URL: https://github.com/python/cpython/pull/145184
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:72d4e61c-5489-892f-f6e4-0a9ec65d4fc7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9D44:234E06:2B4FB6:3ADB6E:6A5259B0 |
| html-safe-nonce | 254614a6ed14a8015de482110496967d403ef9706f7b8553d6d34ffd32764c3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDQ0OjIzNEUwNjoyQjRGQjY6M0FEQjZFOjZBNTI1OUIwIiwidmlzaXRvcl9pZCI6IjMwNzEyNTE2NjI1NTMzNzMxMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fdabe07e6483d299421b1f71ddac1c2d56729d93b9a9a0f271d44c9f995ad0d1 |
| hovercard-subject-tag | pull_request:3321434104 |
| 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/145184/files |
| twitter:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302922?s=400&v=4 |
| og:image:alt | I realize there's a pile of PRs for the issue already, I couldn't find a reason why the singletons (UNBOUND, UNBOUND_ERROR, UNBOUND_REMOVE) need to be singletons. Each is essentially a name... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width