René's URL Explorer Experiment


Title: Avoid mutable default arguments by cclauss · Pull Request #4691 · TheAlgorithms/Python · GitHub

Open Graph Title: Avoid mutable default arguments by cclauss · Pull Request #4691 · TheAlgorithms/Python

X Title: Avoid mutable default arguments by cclauss · Pull Request #4691 · TheAlgorithms/Python

Description: All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.

Open Graph Description: Describe your change: https://docs.python-guide.org/writing/gotchas/ flake8-bugbear B006 Do not use mutable data structures for argument defaults. They are created during function definition time....

X Description: Describe your change: https://docs.python-guide.org/writing/gotchas/ flake8-bugbear B006 Do not use mutable data structures for argument defaults. They are created during function definition time....

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

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:9c62c1ff-2f28-bde1-a15e-343f80053026
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA062:1F6AF6:1F0494D:2CA1356:6A58D8ED
html-safe-noncef638533e21253112a5963b0983dd8c2978b77de47c1ef85e49be510bfc8521db
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDYyOjFGNkFGNjoxRjA0OTREOjJDQTEzNTY6NkE1OEQ4RUQiLCJ2aXNpdG9yX2lkIjoiMjk2NjkwMTkxNDUxOTI2MzQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2cf0d48eb053f85386eb35486ae9453dadff9ff18a2ed7281a4279d4c19f0520
hovercard-subject-tagpull_request:722623169
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/TheAlgorithms/Python/4691/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4b434e0d266c706bdd39186e017a3d03a3a0c51721f0f1fb35a0eca48e7a468b/TheAlgorithms/Python/pull/4691
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4b434e0d266c706bdd39186e017a3d03a3a0c51721f0f1fb35a0eca48e7a468b/TheAlgorithms/Python/pull/4691
og:image:altDescribe your change: https://docs.python-guide.org/writing/gotchas/ flake8-bugbear B006 Do not use mutable data structures for argument defaults. They are created during function definition time....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecclauss
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/TheAlgorithms/Python/pull/4691#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F4691
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2FTheAlgorithms%2FPython%2Fpull%2F4691
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=TheAlgorithms%2FPython
Reloadhttps://github.com/TheAlgorithms/Python/pull/4691
Reloadhttps://github.com/TheAlgorithms/Python/pull/4691
Reloadhttps://github.com/TheAlgorithms/Python/pull/4691
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/4691
TheAlgorithms https://github.com/TheAlgorithms
Pythonhttps://github.com/TheAlgorithms/Python
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/4691
Notifications https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Fork 50.9k https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Star 223k https://github.com/login?return_to=%2FTheAlgorithms%2FPython
Code https://github.com/TheAlgorithms/Python
Issues 141 https://github.com/TheAlgorithms/Python/issues
Pull requests 876 https://github.com/TheAlgorithms/Python/pulls
Discussions https://github.com/TheAlgorithms/Python/discussions
Actions https://github.com/TheAlgorithms/Python/actions
Projects https://github.com/TheAlgorithms/Python/projects
Wiki https://github.com/TheAlgorithms/Python/wiki
Security and quality 0 https://github.com/TheAlgorithms/Python/security
Insights https://github.com/TheAlgorithms/Python/pulse
Code https://github.com/TheAlgorithms/Python
Issues https://github.com/TheAlgorithms/Python/issues
Pull requests https://github.com/TheAlgorithms/Python/pulls
Discussions https://github.com/TheAlgorithms/Python/discussions
Actions https://github.com/TheAlgorithms/Python/actions
Projects https://github.com/TheAlgorithms/Python/projects
Wiki https://github.com/TheAlgorithms/Python/wiki
Security and quality https://github.com/TheAlgorithms/Python/security
Insights https://github.com/TheAlgorithms/Python/pulse
cclausshttps://github.com/cclauss
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
cclauss:mutable-default-argumentshttps://github.com/cclauss/Python/tree/mutable-default-arguments
Conversationhttps://github.com/TheAlgorithms/Python/pull/4691
Commits1 (1)https://github.com/TheAlgorithms/Python/pull/4691/commits
Checkshttps://github.com/TheAlgorithms/Python/pull/4691/checks
Files changedhttps://github.com/TheAlgorithms/Python/pull/4691/files
Avoid mutable default argumentshttps://github.com/TheAlgorithms/Python/pull/4691#top
cclausshttps://github.com/cclauss
TheAlgorithms:masterhttps://github.com/TheAlgorithms/Python/tree/master
cclauss:mutable-default-argumentshttps://github.com/cclauss/Python/tree/mutable-default-arguments
https://github.com/cclauss
cclausshttps://github.com/cclauss
Aug 30, 2021https://github.com/TheAlgorithms/Python/pull/4691#issue-982960350
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/4691
https://docs.python-guide.org/writing/gotchas/https://docs.python-guide.org/writing/gotchas/
flake8-bugbearhttps://pypi.org/project/flake8-bugbear
CONTRIBUTING.mdhttps://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md
type hintshttps://docs.python.org/3/library/typing.html
doctestshttps://docs.python.org/3/library/doctest.html
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/4691
https://github.com/cclauss
cclausshttps://github.com/cclauss
dhruvmanilahttps://github.com/dhruvmanila
August 30, 2021 16:11https://github.com/TheAlgorithms/Python/pull/4691#event-5227266642
https://github.com/cclauss
cclausshttps://github.com/cclauss
Kush1101https://github.com/Kush1101
code ownerhttps://github.com/TheAlgorithms/Python/blob/3acca3d1d188f89c6aa0fb4c0139ac62426ea296/.github/CODEOWNERS#L62
August 30, 2021 16:11https://github.com/TheAlgorithms/Python/pull/4691#event-5227266679
awaiting reviews https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22
enhancement https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement
Aug 30, 2021https://github.com/TheAlgorithms/Python/pull/4691#event-5227267772
https://github.com/cclauss
cclausshttps://github.com/cclauss
Aug 30, 2021 https://github.com/TheAlgorithms/Python/pull/4691#ref-pullrequest-982724009
Add flake8-bugbear to the testing #4690 https://github.com/TheAlgorithms/Python/pull/4690
https://github.com/cclauss
Avoid mutable default argumentshttps://github.com/TheAlgorithms/Python/pull/4691/commits/389d64a19515159bde321c86e55380dc5dad94a5
389d64ahttps://github.com/TheAlgorithms/Python/pull/4691/commits/389d64a19515159bde321c86e55380dc5dad94a5
https://github.com/cclauss
cclausshttps://github.com/cclauss
force-pushedhttps://github.com/TheAlgorithms/Python/compare/b3447e06b574cedf96fbce05086003dd84d15335..389d64a19515159bde321c86e55380dc5dad94a5
b3447e0https://github.com/TheAlgorithms/Python/commit/b3447e06b574cedf96fbce05086003dd84d15335
389d64ahttps://github.com/TheAlgorithms/Python/commit/389d64a19515159bde321c86e55380dc5dad94a5
Compare https://github.com/TheAlgorithms/Python/compare/b3447e06b574cedf96fbce05086003dd84d15335..389d64a19515159bde321c86e55380dc5dad94a5
August 30, 2021 16:17https://github.com/TheAlgorithms/Python/pull/4691#event-5227297352
https://github.com/dhruvmanila
dhruvmanilahttps://github.com/dhruvmanila
Aug 31, 2021 https://github.com/TheAlgorithms/Python/pull/4691#pullrequestreview-742251344
View reviewed changes https://github.com/TheAlgorithms/Python/pull/4691/files/389d64a19515159bde321c86e55380dc5dad94a5
dhruvmanilahttps://github.com/dhruvmanila
https://github.com/TheAlgorithms/Python/pull/4691#pullrequestreview-742251344
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/4691
awaiting reviews https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3A%22awaiting%20reviews%22
Aug 31, 2021https://github.com/TheAlgorithms/Python/pull/4691#event-5229849830
https://github.com/cclauss
cclausshttps://github.com/cclauss
097f830https://github.com/TheAlgorithms/Python/commit/097f83023866d625a38c891a46ce3a70d73d7f63
Aug 31, 2021https://github.com/TheAlgorithms/Python/pull/4691#event-5230026991
https://github.com/cclauss
cclausshttps://github.com/cclauss
August 31, 2021 04:56https://github.com/TheAlgorithms/Python/pull/4691#event-5230027190
shermanhuihttps://github.com/shermanhui
Oct 22, 2021 https://github.com/TheAlgorithms/Python/pull/4691#ref-commit-c7836fc
https://github.com/cclauss
https://github.com/shermanhui
Avoid mutable default arguments (https://github.com/shermanhui/Python/commit/c7836fc95b463b793c7060d83ae2db51ac9ef145
TheAlgorithms#4691https://github.com/TheAlgorithms/Python/pull/4691
)https://github.com/shermanhui/Python/commit/c7836fc95b463b793c7060d83ae2db51ac9ef145
c7836fchttps://github.com/shermanhui/Python/commit/c7836fc95b463b793c7060d83ae2db51ac9ef145
https://github.co/hiddenchars
https://github.com/TheAlgorithms/Python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FTheAlgorithms%2FPython%2Fpull%2F4691
https://github.com/dhruvmanila
dhruvmanila https://github.com/dhruvmanila
https://github.com/TheAlgorithms/Python/pull/4691/files/389d64a19515159bde321c86e55380dc5dad94a5
https://github.com/Kush1101
Kush1101 https://github.com/Kush1101
enhancement https://github.com/TheAlgorithms/Python/issues?q=state%3Aopen%20label%3Aenhancement
Please reload this pagehttps://github.com/TheAlgorithms/Python/pull/4691
https://github.com/cclauss
https://github.com/dhruvmanila
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.