René's URL Explorer Experiment


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

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:68f0f59a-2487-1035-4dc6-6c99cdd92e1c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8126:24B668:44727E:5C789D:69696DC2
html-safe-nonce38abf7cc3402406ea510dd1f54ee24109371a58cd486e526c493f2b17b316afe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTI2OjI0QjY2ODo0NDcyN0U6NUM3ODlEOjY5Njk2REMyIiwidmlzaXRvcl9pZCI6Ijg2NzMyMTUxMDQ4NTQ2MTc1MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1d26d9e0b663c8306991a4edf46e31296c9fade0ecab8b2da401c16150d65a91
hovercard-subject-tagpull_request:2711171534
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/grantjenks/python-diskcache/350/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/609cb37d753eb790f5eb14e3a49fda17e90d80a2df8ba46208885037711ae13a/grantjenks/python-diskcache/pull/350
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/609cb37d753eb790f5eb14e3a49fda17e90d80a2df8ba46208885037711ae13a/grantjenks/python-diskcache/pull/350
og:image:altPython 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameradiumatic
hostnamegithub.com
expected-hostnamegithub.com
Nonec6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881
turbo-cache-controlno-preview
go-importgithub.com/grantjenks/python-diskcache git https://github.com/grantjenks/python-diskcache.git
octolytics-dimension-user_id118304
octolytics-dimension-user_logingrantjenks
octolytics-dimension-repository_id51039722
octolytics-dimension-repository_nwograntjenks/python-diskcache
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51039722
octolytics-dimension-repository_network_root_nwograntjenks/python-diskcache
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/grantjenks/python-diskcache/pull/350#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgrantjenks%2Fpython-diskcache%2Fpull%2F350
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgrantjenks%2Fpython-diskcache%2Fpull%2F350
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=grantjenks%2Fpython-diskcache
Reloadhttps://github.com/grantjenks/python-diskcache/pull/350
Reloadhttps://github.com/grantjenks/python-diskcache/pull/350
Reloadhttps://github.com/grantjenks/python-diskcache/pull/350
grantjenks https://github.com/grantjenks
python-diskcachehttps://github.com/grantjenks/python-diskcache
Notifications https://github.com/login?return_to=%2Fgrantjenks%2Fpython-diskcache
Fork 155 https://github.com/login?return_to=%2Fgrantjenks%2Fpython-diskcache
Star 2.8k https://github.com/login?return_to=%2Fgrantjenks%2Fpython-diskcache
Code https://github.com/grantjenks/python-diskcache
Issues 49 https://github.com/grantjenks/python-diskcache/issues
Pull requests 17 https://github.com/grantjenks/python-diskcache/pulls
Actions https://github.com/grantjenks/python-diskcache/actions
Projects 0 https://github.com/grantjenks/python-diskcache/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/grantjenks/python-diskcache/security
Please reload this pagehttps://github.com/grantjenks/python-diskcache/pull/350
Insights https://github.com/grantjenks/python-diskcache/pulse
Code https://github.com/grantjenks/python-diskcache
Issues https://github.com/grantjenks/python-diskcache/issues
Pull requests https://github.com/grantjenks/python-diskcache/pulls
Actions https://github.com/grantjenks/python-diskcache/actions
Projects https://github.com/grantjenks/python-diskcache/projects
Security https://github.com/grantjenks/python-diskcache/security
Insights https://github.com/grantjenks/python-diskcache/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fgrantjenks%2Fpython-diskcache%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgrantjenks%2Fpython-diskcache%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/grantjenks/python-diskcache/pull/350#issue-comment-box
radiumatichttps://github.com/radiumatic
grantjenks:masterhttps://github.com/grantjenks/python-diskcache/tree/master
radiumatic:masterhttps://github.com/radiumatic/python-diskcache/tree/master
Implement __bool__ for diskcache.Cache to make it Truthy https://github.com/grantjenks/python-diskcache/pull/350#top
radiumatichttps://github.com/radiumatic
grantjenks:masterhttps://github.com/grantjenks/python-diskcache/tree/master
radiumatic:masterhttps://github.com/radiumatic/python-diskcache/tree/master
Conversation 0 https://github.com/grantjenks/python-diskcache/pull/350
Commits 1 https://github.com/grantjenks/python-diskcache/pull/350/commits
Checks 0 https://github.com/grantjenks/python-diskcache/pull/350/checks
Files changed https://github.com/grantjenks/python-diskcache/pull/350/files
Please reload this pagehttps://github.com/grantjenks/python-diskcache/pull/350
https://github.co/hiddenchars
https://github.com/grantjenks/python-diskcache/pull/{{ revealButtonHref }}
https://github.com/radiumatic
radiumatichttps://github.com/radiumatic
Jul 31, 2025https://github.com/grantjenks/python-diskcache/pull/350#issue-3281624076
Please reload this pagehttps://github.com/grantjenks/python-diskcache/pull/350
https://github.com/radiumatic
Implement __bool__ for diskcache.Cache to make it Truthy (https://github.com/grantjenks/python-diskcache/pull/350/commits/32b78cdb062e70bab96f8e679b1688a49338e950
#1https://github.com/radiumatic/python-diskcache/pull/1
)https://github.com/grantjenks/python-diskcache/pull/350/commits/32b78cdb062e70bab96f8e679b1688a49338e950
32b78cdhttps://github.com/grantjenks/python-diskcache/pull/350/commits/32b78cdb062e70bab96f8e679b1688a49338e950
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgrantjenks%2Fpython-diskcache%2Fpull%2F350
Please reload this pagehttps://github.com/grantjenks/python-diskcache/pull/350
https://github.com/radiumatic
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.