Title: Implement __bool__ for diskcache.Cache to make it Truthy by radiumatic · Pull Request #350 · grantjenks/python-diskcache · GitHub
Open Graph Title: Implement __bool__ for diskcache.Cache to make it Truthy by radiumatic · Pull Request #350 · grantjenks/python-diskcache
X Title: Implement __bool__ for diskcache.Cache to make it Truthy by radiumatic · Pull Request #350 · grantjenks/python-diskcache
Description: Python first checks bool and then len to determine whether an object is Truthy. Given the fact that an empty cache returns 0 for the length, it breaks checks that rely on if cache instead of if cac...
Open Graph Description: Python first checks bool and then len to determine whether an object is Truthy. Given the fact that an empty cache returns 0 for the length, it breaks checks that rely on if cache instead of if cac...
X Description: Python first checks bool and then len to determine whether an object is Truthy. Given the fact that an empty cache returns 0 for the length, it breaks checks that rely on if cache instead of if cac...
Opengraph URL: https://github.com/grantjenks/python-diskcache/pull/350
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:68f0f59a-2487-1035-4dc6-6c99cdd92e1c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8126:24B668:44727E:5C789D:69696DC2 |
| html-safe-nonce | 38abf7cc3402406ea510dd1f54ee24109371a58cd486e526c493f2b17b316afe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTI2OjI0QjY2ODo0NDcyN0U6NUM3ODlEOjY5Njk2REMyIiwidmlzaXRvcl9pZCI6Ijg2NzMyMTUxMDQ4NTQ2MTc1MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1d26d9e0b663c8306991a4edf46e31296c9fade0ecab8b2da401c16150d65a91 |
| hovercard-subject-tag | pull_request:2711171534 |
| 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/_view_fragments/voltron/pull_requests/show/grantjenks/python-diskcache/350/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/609cb37d753eb790f5eb14e3a49fda17e90d80a2df8ba46208885037711ae13a/grantjenks/python-diskcache/pull/350 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/609cb37d753eb790f5eb14e3a49fda17e90d80a2df8ba46208885037711ae13a/grantjenks/python-diskcache/pull/350 |
| og:image:alt | Python first checks bool and then len to determine whether an object is Truthy. Given the fact that an empty cache returns 0 for the length, it breaks checks that rely on if cache instead of if cac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | radiumatic |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/grantjenks/python-diskcache git https://github.com/grantjenks/python-diskcache.git |
| octolytics-dimension-user_id | 118304 |
| octolytics-dimension-user_login | grantjenks |
| octolytics-dimension-repository_id | 51039722 |
| octolytics-dimension-repository_nwo | grantjenks/python-diskcache |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51039722 |
| octolytics-dimension-repository_network_root_nwo | grantjenks/python-diskcache |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width