René's URL Explorer Experiment


Title: Use ==/!= to compare str, bytes, and int literals by cclauss · Pull Request #767 · TheAlgorithms/Python · GitHub

Open Graph Title: Use ==/!= to compare str, bytes, and int literals by cclauss · Pull Request #767 · TheAlgorithms/Python

X Title: Use ==/!= to compare str, bytes, and int literals by cclauss · Pull Request #767 · TheAlgorithms/Python

Description: Identity is not the same thing as equality. We want the latter. $ python >>> raw = 'ra' >>> raw += 'w' >>> raw 'raw' >>> raw == 'raw' True >>> raw is 'raw' False >>> 0 == 0.0 True >>> 0 is 0.0 False flake8 testing of https://github.com/TheAlgorithms/Python on Python 3.7.1 $ flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics ./project_euler/problem_17/sol1.py:25:7: F632 use ==/!= to compare str, bytes, and int literals if i0 is not 0: ^ ./project_euler/problem_19/sol1.py:33:40: F632 use ==/!= to compare str, bytes, and int literals if day > days_per_month[month-1] and month is not 2: ^ ./project_euler/problem_19/sol1.py:36:21: F632 use ==/!= to compare str, bytes, and int literals elif day > 29 and month is 2: ^ ./project_euler/problem_19/sol1.py:48:21: F632 use ==/!= to compare str, bytes, and int literals if year < 2001 and day is 1: ^ ./graphs/Directed and Undirected (Weighted) Graph.py:162:100: F821 undefined name 'on_the_way_back' if visited.count(__[1]) > 0 and __[1] != parent and indirect_parents.count(__[1]) > 0 and not on_the_way_back: ^ ./graphs/Directed and Undirected (Weighted) Graph.py:209:100: F821 undefined name 'on_the_way_back' if visited.count(__[1]) > 0 and __[1] != parent and indirect_parents.count(__[1]) > 0 and not on_the_way_back: ^ ./graphs/Directed and Undirected (Weighted) Graph.py:377:100: F821 undefined name 'on_the_way_back' if visited.count(__[1]) > 0 and __[1] != parent and indirect_parents.count(__[1]) > 0 and not on_the_way_back: ^ ./graphs/Directed and Undirected (Weighted) Graph.py:424:100: F821 undefined name 'on_the_way_back' if visited.count(__[1]) > 0 and __[1] != parent and indirect_parents.count(__[1]) > 0 and not on_the_way_back: ^ 4 F632 use ==/!= to compare str, bytes, and int literals 4 F821 undefined name 'on_the_way_back' 8

Open Graph Description: Identity is not the same thing as equality. We want the latter. $ python >>> raw = 'ra' >>> raw += 'w' >>> raw 'raw' >>> raw == 'raw...

X Description: Identity is not the same thing as equality. We want the latter. $ python &gt;&gt;&gt; raw = &#39;ra&#39; &gt;&gt;&gt; raw += &#39;w&#39; &gt;&gt;&am...

Opengraph URL: https://github.com/TheAlgorithms/Python/pull/767

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:d5a1747f-239f-316e-c478-c94c97fd1f11
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE28E:3E5885:34642B:4550C0:6AFBB9F5
html-safe-nonce9bbf1f76cbe7a6a29c9021e81f4416ef6093f79567a9000d1b6f22c4d34d07ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjhFOjNFNTg4NTozNDY0MkI6NDU1MEMwOjZBRkJCOUY1IiwidmlzaXRvcl9pZCI6Ijc3MTUwNDU2ODM5NzA2ODU0MjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb19790c5d0d1f07c84197942ca63d44f9406eb1eb0633cec495fe99a7b93402a
hovercard-subject-tagpull_request:273619112
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/TheAlgorithms/Python/pull/767/files
twitter:imagehttps://avatars.githubusercontent.com/u/3709715?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3709715?s=400&v=4
og:image:altIdentity is not the same thing as equality. We want the latter. $ python >>> raw = 'ra' >>> raw += 'w' >>> raw 'raw' >>> raw == 'raw...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/TheAlgorithms/Python git https://github.com/TheAlgorithms/Python.git
octolytics-dimension-user_id20487725
octolytics-dimension-user_loginTheAlgorithms
octolytics-dimension-repository_id63476337
octolytics-dimension-repository_nwoTheAlgorithms/Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id63476337
octolytics-dimension-repository_network_root_nwoTheAlgorithms/Python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/pull/767/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F767%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F767%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/pull/767/files
Reloadhttps://github.com/TheAlgorithms/Python/pull/767/files
Reloadhttps://github.com/TheAlgorithms/Python/pull/767/files
TheAlgorithmshttps://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Codehttps://github.com/TheAlgorithms/Python
Issues14 (14)https://github.com/TheAlgorithms/Python/issues
Pull requests104 (104)https://github.com/TheAlgorithms/Python/pulls
Discussionshttps://github.com/TheAlgorithms/Python/discussions
Actionshttps://github.com/TheAlgorithms/Python/actions
Projectshttps://github.com/TheAlgorithms/Python/projects
Wikihttps://github.com/TheAlgorithms/Python/wiki
Security and qualityhttps://github.com/TheAlgorithms/Python/security
Insightshttps://github.com/TheAlgorithms/Python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FTheAlgorithms%2FPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FTheAlgorithms%2FPython%2Fissues%2Fnew%2Fchoose
poyeahttps://github.com/poyea
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
cclauss:patch-1https://github.com/cclauss/Python/tree/patch-1
Conversation 0 https://github.com/TheAlgorithms/Python/pull/767
Commits 4 https://github.com/TheAlgorithms/Python/pull/767/commits
Checks 0 https://github.com/TheAlgorithms/Python/pull/767/checks
Files changed https://github.com/TheAlgorithms/Python/pull/767/files
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/767/files
Use ==/!= to compare str, bytes, and int literals https://github.com/TheAlgorithms/Python/pull/767/files#top
Show all changes 4 commits https://github.com/TheAlgorithms/Python/pull/767/files
e0379c5 Travis CI: Add more flake8 tests cclauss Apr 25, 2019 https://github.com/TheAlgorithms/Python/pull/767/commits/e0379c58fecdb7620c4a53c04f57e8cfea10d2fa
c6eb747 Use ==/!= to compare str, bytes, and int literals cclauss Apr 25, 2019 https://github.com/TheAlgorithms/Python/pull/767/commits/c6eb747933bef5909e54c05e8ce9c48bcd258eda
2c7ea44 Use ==/!= to compare str, bytes, and int literals cclauss Apr 25, 2019 https://github.com/TheAlgorithms/Python/pull/767/commits/2c7ea44004c1a2729c1e8fab307f32c78a9eaa1e
0e0f8fb Update sol1.py cclauss Apr 25, 2019 https://github.com/TheAlgorithms/Python/pull/767/commits/0e0f8fb871ec64f7c2848f192481324f7a9afbcb
Clear filters https://github.com/TheAlgorithms/Python/pull/767/files
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/767/files
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/767/files
.travis.yml https://github.com/TheAlgorithms/Python/pull/767/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
sol1.py https://github.com/TheAlgorithms/Python/pull/767/files#diff-366ed885deba3e9fa7d085e85e2116bee9b7af5edfd16662e396dd79ec874111
sol1.py https://github.com/TheAlgorithms/Python/pull/767/files#diff-aa880d92b0c86ea830164f86191a284d9acaff40950a02bf56383e174bc71500
https://github.com/TheAlgorithms/Python/blob/master/.github/CODEOWNERS#L10
.travis.ymlhttps://github.com/TheAlgorithms/Python/pull/767/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
View file https://github.com/cclauss/Python/blob/0e0f8fb871ec64f7c2848f192481324f7a9afbcb/.travis.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/767/{{ revealButtonHref }}
https://github.com/TheAlgorithms/Python/pull/767/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
https://github.com/TheAlgorithms/Python/pull/767/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
project_euler/problem_17/sol1.pyhttps://github.com/TheAlgorithms/Python/pull/767/files#diff-366ed885deba3e9fa7d085e85e2116bee9b7af5edfd16662e396dd79ec874111
View file https://github.com/cclauss/Python/blob/0e0f8fb871ec64f7c2848f192481324f7a9afbcb/project_euler/problem_17/sol1.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/767/{{ revealButtonHref }}
https://github.com/TheAlgorithms/Python/pull/767/files#diff-366ed885deba3e9fa7d085e85e2116bee9b7af5edfd16662e396dd79ec874111
https://github.com/TheAlgorithms/Python/pull/767/files#diff-366ed885deba3e9fa7d085e85e2116bee9b7af5edfd16662e396dd79ec874111
project_euler/problem_19/sol1.pyhttps://github.com/TheAlgorithms/Python/pull/767/files#diff-aa880d92b0c86ea830164f86191a284d9acaff40950a02bf56383e174bc71500
View file https://github.com/cclauss/Python/blob/0e0f8fb871ec64f7c2848f192481324f7a9afbcb/project_euler/problem_19/sol1.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/767/{{ revealButtonHref }}
https://github.com/TheAlgorithms/Python/pull/767/files#diff-aa880d92b0c86ea830164f86191a284d9acaff40950a02bf56383e174bc71500
https://github.com/TheAlgorithms/Python/pull/767/files#diff-aa880d92b0c86ea830164f86191a284d9acaff40950a02bf56383e174bc71500
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.