René's URL Explorer Experiment


Title: GitHub - PythonNuts/wtfpython: A collection of surprising Python snippets and lesser-known features. · GitHub

Open Graph Title: GitHub - PythonNuts/wtfpython: A collection of surprising Python snippets and lesser-known features.

X Title: GitHub - PythonNuts/wtfpython: A collection of surprising Python snippets and lesser-known features.

Description: A collection of surprising Python snippets and lesser-known features. - PythonNuts/wtfpython

Open Graph Description: A collection of surprising Python snippets and lesser-known features. - PythonNuts/wtfpython

X Description: A collection of surprising Python snippets and lesser-known features. - PythonNuts/wtfpython

Opengraph URL: https://github.com/PythonNuts/wtfpython

X: @github

direct link

Domain: redirect.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
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:9e084f1d-1deb-1c59-8ee8-36762ccacad6
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idD020:13F665:330E2:45BEF:6AFBF70D
html-safe-nonced074d78942784dfb6211e506288e1ee3f608e83907196d7d5117df82a2758d81
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDIwOjEzRjY2NTozMzBFMjo0NUJFRjo2QUZCRjcwRCIsInZpc2l0b3JfaWQiOiI2OTA5MTM4NTYxNzE1MTQwMzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd6953e58850d96949dee9cc3d8b0fd5f72a60002022ee00bb753aa83a2f0510f
hovercard-subject-tagrepository:119226570
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PythonNuts/wtfpython
twitter:imagehttps://opengraph.githubassets.com/ef76c5e88a4b4f3bdbf29f2bf3ca373e1198d001d94996edc0a39039063a1329/PythonNuts/wtfpython
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ef76c5e88a4b4f3bdbf29f2bf3ca373e1198d001d94996edc0a39039063a1329/PythonNuts/wtfpython
og:image:altA collection of surprising Python snippets and lesser-known features. - PythonNuts/wtfpython
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
turbo-cache-controlno-cache
go-importgithub.com/PythonNuts/wtfpython git https://github.com/PythonNuts/wtfpython.git
octolytics-dimension-user_id9855267
octolytics-dimension-user_loginPythonNuts
octolytics-dimension-repository_id119226570
octolytics-dimension-repository_nwoPythonNuts/wtfpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id101684374
octolytics-dimension-repository_parent_nwosatwikkansal/wtfpython
octolytics-dimension-repository_network_root_id101684374
octolytics-dimension-repository_network_root_nwosatwikkansal/wtfpython
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
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/PythonNuts/wtfpython#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonNuts%2Fwtfpython
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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonNuts%2Fwtfpython
Sign uphttps://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=PythonNuts%2Fwtfpython
Reloadhttps://redirect.github.com/PythonNuts/wtfpython
Reloadhttps://redirect.github.com/PythonNuts/wtfpython
Reloadhttps://redirect.github.com/PythonNuts/wtfpython
PythonNutshttps://redirect.github.com/PythonNuts
wtfpythonhttps://redirect.github.com/PythonNuts/wtfpython
Codehttps://redirect.github.com/PythonNuts/wtfpython
Pull requestshttps://redirect.github.com/PythonNuts/wtfpython/pulls
Actionshttps://redirect.github.com/PythonNuts/wtfpython/actions
Projectshttps://redirect.github.com/PythonNuts/wtfpython/projects
Wikihttps://redirect.github.com/PythonNuts/wtfpython/wiki
Security and qualityhttps://redirect.github.com/PythonNuts/wtfpython/security
Insightshttps://redirect.github.com/PythonNuts/wtfpython/pulse
https://redirect.github.com/PythonNuts/wtfpython
wtfpythonhttps://redirect.github.com/PythonNuts/wtfpython
satwikkansal/wtfpythonhttps://redirect.github.com/satwikkansal/wtfpython
Notificationshttps://redirect.github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Fork0 (0)https://redirect.github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Star0 (0)https://redirect.github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Readmehttps://redirect.github.com/PythonNuts/wtfpython#readme-ov-file
WTFPL licensehttps://redirect.github.com/PythonNuts/wtfpython#WTFPL-1-ov-file
Code of conducthttps://redirect.github.com/PythonNuts/wtfpython#coc-ov-file
Contributinghttps://redirect.github.com/PythonNuts/wtfpython#contributing-ov-file
Activityhttps://redirect.github.com/PythonNuts/wtfpython/activity
Custom propertieshttps://redirect.github.com/PythonNuts/wtfpython/custom-properties
0 forkshttps://redirect.github.com/PythonNuts/wtfpython/forks
Report repositoryhttps://redirect.github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FPythonNuts%2Fwtfpython&report=PythonNuts+%28user%29
Brancheshttps://redirect.github.com/PythonNuts/wtfpython/branches
Tagshttps://redirect.github.com/PythonNuts/wtfpython/tags
https://redirect.github.com/PythonNuts/wtfpython/branches
https://redirect.github.com/PythonNuts/wtfpython/tags
201 Commitshttps://redirect.github.com/PythonNuts/wtfpython/commits/master/
https://redirect.github.com/PythonNuts/wtfpython/commits/master/
imageshttps://redirect.github.com/PythonNuts/wtfpython/tree/master/images
imageshttps://redirect.github.com/PythonNuts/wtfpython/tree/master/images
irrelevanthttps://redirect.github.com/PythonNuts/wtfpython/tree/master/irrelevant
irrelevanthttps://redirect.github.com/PythonNuts/wtfpython/tree/master/irrelevant
wtfpython-pypihttps://redirect.github.com/PythonNuts/wtfpython/tree/master/wtfpython-pypi
wtfpython-pypihttps://redirect.github.com/PythonNuts/wtfpython/tree/master/wtfpython-pypi
.gitattributeshttps://redirect.github.com/PythonNuts/wtfpython/blob/master/.gitattributes
.gitattributeshttps://redirect.github.com/PythonNuts/wtfpython/blob/master/.gitattributes
.gitignorehttps://redirect.github.com/PythonNuts/wtfpython/blob/master/.gitignore
.gitignorehttps://redirect.github.com/PythonNuts/wtfpython/blob/master/.gitignore
.npmignorehttps://redirect.github.com/PythonNuts/wtfpython/blob/master/.npmignore
.npmignorehttps://redirect.github.com/PythonNuts/wtfpython/blob/master/.npmignore
CONTRIBUTING.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTING.md
CONTRIBUTING.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTING.md
CONTRIBUTORS.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTORS.md
CONTRIBUTORS.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTORS.md
LICENSEhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/LICENSE
LICENSEhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/LICENSE
README.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/README.md
README.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/README.md
code-of-conduct.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/code-of-conduct.md
code-of-conduct.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/code-of-conduct.md
mixed_tabs_and_spaces.pyhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/mixed_tabs_and_spaces.py
mixed_tabs_and_spaces.pyhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/mixed_tabs_and_spaces.py
package.jsonhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/package.json
package.jsonhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/package.json
wtfpythonhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/wtfpython
wtfpythonhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/wtfpython
READMEhttps://redirect.github.com/PythonNuts/wtfpython
Code of conducthttps://redirect.github.com/PythonNuts/wtfpython
Contributinghttps://redirect.github.com/PythonNuts/wtfpython
WTFPL licensehttps://redirect.github.com/PythonNuts/wtfpython
https://redirect.github.com/PythonNuts/wtfpython/blob/master/images/logo.png
https://redirect.github.com/PythonNuts/wtfpython#-what-the-fck-python--
http://www.wtfpl.net
herehttps://github.com/satwikkansal/wtfpython/releases/
https://redirect.github.com/PythonNuts/wtfpython#table-of-contents
Structure of the Exampleshttps://redirect.github.com/PythonNuts/wtfpython#structure-of-the-examples
Usagehttps://redirect.github.com/PythonNuts/wtfpython#usage
👀 Exampleshttps://redirect.github.com/PythonNuts/wtfpython#-examples
Section: Strain your brain!https://redirect.github.com/PythonNuts/wtfpython#section-strain-your-brain
▶ Strings can be tricky sometimes *https://redirect.github.com/PythonNuts/wtfpython#-strings-can-be-tricky-sometimes-
▶ Time for some hash brownies!https://redirect.github.com/PythonNuts/wtfpython#-time-for-some-hash-brownies
▶ Return return everywhere!https://redirect.github.com/PythonNuts/wtfpython#-return-return-everywhere
▶ Deep down, we're all the same. *https://redirect.github.com/PythonNuts/wtfpython#-deep-down-were-all-the-same-
▶ For what?https://redirect.github.com/PythonNuts/wtfpython#-for-what
▶ Evaluation time discrepancyhttps://redirect.github.com/PythonNuts/wtfpython#-evaluation-time-discrepancy
▶ is is not what it is!https://redirect.github.com/PythonNuts/wtfpython#-is-is-not-what-it-is
▶ A tic-tac-toe where X wins in the first attempt!https://redirect.github.com/PythonNuts/wtfpython#-a-tic-tac-toe-where-x-wins-in-the-first-attempt
▶ The sticky output functionhttps://redirect.github.com/PythonNuts/wtfpython#-the-sticky-output-function
▶ is not ... is not is (not ...)https://redirect.github.com/PythonNuts/wtfpython#-is-not--is-not-is-not-
▶ The surprising commahttps://redirect.github.com/PythonNuts/wtfpython#-the-surprising-comma
▶ Backslashes at the end of stringhttps://redirect.github.com/PythonNuts/wtfpython#-backslashes-at-the-end-of-string
▶ not knot!https://redirect.github.com/PythonNuts/wtfpython#-not-knot
▶ Half triple-quoted stringshttps://redirect.github.com/PythonNuts/wtfpython#-half-triple-quoted-strings
▶ Midnight time doesn't exist?https://redirect.github.com/PythonNuts/wtfpython#-midnight-time-doesnt-exist
▶ What's wrong with booleans?https://redirect.github.com/PythonNuts/wtfpython#-whats-wrong-with-booleans
▶ Class attributes and instance attributeshttps://redirect.github.com/PythonNuts/wtfpython#-class-attributes-and-instance-attributes
▶ yielding Nonehttps://redirect.github.com/PythonNuts/wtfpython#-yielding-none
▶ Mutating the immutable!https://redirect.github.com/PythonNuts/wtfpython#-mutating-the-immutable
▶ The disappearing variable from outer scopehttps://redirect.github.com/PythonNuts/wtfpython#-the-disappearing-variable-from-outer-scope
▶ When True is actually Falsehttps://redirect.github.com/PythonNuts/wtfpython#-when-true-is-actually-false
▶ From filled to None in one instruction...https://redirect.github.com/PythonNuts/wtfpython#-from-filled-to-none-in-one-instruction
▶ Subclass relationships *https://redirect.github.com/PythonNuts/wtfpython#-subclass-relationships-
▶ The mysterious key type conversion *https://redirect.github.com/PythonNuts/wtfpython#-the-mysterious-key-type-conversion-
▶ Let's see if you can guess this?https://redirect.github.com/PythonNuts/wtfpython#-lets-see-if-you-can-guess-this
Section: Appearances are deceptive!https://redirect.github.com/PythonNuts/wtfpython#section-appearances-are-deceptive
▶ Skipping lines?https://redirect.github.com/PythonNuts/wtfpython#-skipping-lines
▶ Teleportation *https://redirect.github.com/PythonNuts/wtfpython#-teleportation-
▶ Well, something is fishy...https://redirect.github.com/PythonNuts/wtfpython#-well-something-is-fishy
Section: Watch out for the landmines!https://redirect.github.com/PythonNuts/wtfpython#section-watch-out-for-the-landmines
▶ Modifying a dictionary while iterating over ithttps://redirect.github.com/PythonNuts/wtfpython#-modifying-a-dictionary-while-iterating-over-it
▶ Stubborn del operator *https://redirect.github.com/PythonNuts/wtfpython#-stubborn-del-operator-
▶ Deleting a list item while iteratinghttps://redirect.github.com/PythonNuts/wtfpython#-deleting-a-list-item-while-iterating
▶ Loop variables leaking out!https://redirect.github.com/PythonNuts/wtfpython#-loop-variables-leaking-out
▶ Beware of default mutable arguments!https://redirect.github.com/PythonNuts/wtfpython#-beware-of-default-mutable-arguments
▶ Catching the Exceptionshttps://redirect.github.com/PythonNuts/wtfpython#-catching-the-exceptions
▶ Same operands, different story!https://redirect.github.com/PythonNuts/wtfpython#-same-operands-different-story
▶ The out of scope variablehttps://redirect.github.com/PythonNuts/wtfpython#-the-out-of-scope-variable
▶ Be careful with chained operationshttps://redirect.github.com/PythonNuts/wtfpython#-be-careful-with-chained-operations
▶ Name resolution ignoring class scopehttps://redirect.github.com/PythonNuts/wtfpython#-name-resolution-ignoring-class-scope
▶ Needle in a Haystackhttps://redirect.github.com/PythonNuts/wtfpython#-needle-in-a-haystack
Section: The Hidden treasures!https://redirect.github.com/PythonNuts/wtfpython#section-the-hidden-treasures
▶ Okay Python, Can you make me fly? *https://redirect.github.com/PythonNuts/wtfpython#-okay-python-can-you-make-me-fly-
▶ goto, but why? *https://redirect.github.com/PythonNuts/wtfpython#-goto-but-why-
▶ Brace yourself! *https://redirect.github.com/PythonNuts/wtfpython#-brace-yourself-
▶ Let's meet Friendly Language Uncle For Life *https://redirect.github.com/PythonNuts/wtfpython#-lets-meet-friendly-language-uncle-for-life-
▶ Even Python understands that love is complicated *https://redirect.github.com/PythonNuts/wtfpython#-even-python-understands-that-love-is-complicated-
▶ Yes, it exists!https://redirect.github.com/PythonNuts/wtfpython#-yes-it-exists
▶ Inpinity *https://redirect.github.com/PythonNuts/wtfpython#-inpinity-
▶ Mangling time! *https://redirect.github.com/PythonNuts/wtfpython#-mangling-time-
Section: Miscallaneoushttps://redirect.github.com/PythonNuts/wtfpython#section-miscallaneous
▶ += is fasterhttps://redirect.github.com/PythonNuts/wtfpython#--is-faster
▶ Let's make a giant string!https://redirect.github.com/PythonNuts/wtfpython#-lets-make-a-giant-string
▶ Explicit typecast of stringshttps://redirect.github.com/PythonNuts/wtfpython#-explicit-typecast-of-strings
▶ Minor Oneshttps://redirect.github.com/PythonNuts/wtfpython#-minor-ones
Contributinghttps://redirect.github.com/PythonNuts/wtfpython#contributing
Acknowledgementshttps://redirect.github.com/PythonNuts/wtfpython#acknowledgements
🎓 Licensehttps://redirect.github.com/PythonNuts/wtfpython#-license
Helphttps://redirect.github.com/PythonNuts/wtfpython#help
Want to share wtfpython with friends?https://redirect.github.com/PythonNuts/wtfpython#want-to-share-wtfpython-with-friends
Need a pdf version?https://redirect.github.com/PythonNuts/wtfpython#need-a-pdf-version
https://redirect.github.com/PythonNuts/wtfpython#structure-of-the-examples
https://redirect.github.com/PythonNuts/wtfpython#-some-fancy-title-
https://redirect.github.com/PythonNuts/wtfpython#-explanation
https://redirect.github.com/PythonNuts/wtfpython#usage
herehttps://github.com/satwikkansal/wtfPython
wtfpythonhttps://www.npmjs.com/package/wtfpython
wtfpythonhttps://pypi.python.org/pypi/wtfpython
https://redirect.github.com/PythonNuts/wtfpython#-examples
https://redirect.github.com/PythonNuts/wtfpython#section-strain-your-brain
https://redirect.github.com/PythonNuts/wtfpython#-strings-can-be-tricky-sometimes-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-1
https://redirect.github.com/PythonNuts/wtfpython/blob/master/images/string-intern/string_intern.png
https://redirect.github.com/PythonNuts/wtfpython#-time-for-some-hash-brownies
https://redirect.github.com/PythonNuts/wtfpython#-explanation-2
answerhttps://stackoverflow.com/a/32211042/4354153
https://redirect.github.com/PythonNuts/wtfpython#-return-return-everywhere
https://redirect.github.com/PythonNuts/wtfpython#-explanation-3
https://redirect.github.com/PythonNuts/wtfpython#-deep-down-were-all-the-same-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-4
https://redirect.github.com/PythonNuts/wtfpython#-for-what
https://redirect.github.com/PythonNuts/wtfpython#-explanation-5
Python grammarhttps://docs.python.org/3/reference/grammar.html
https://redirect.github.com/PythonNuts/wtfpython#-evaluation-time-discrepancy
https://redirect.github.com/PythonNuts/wtfpython#-explanation-6
generatorhttps://wiki.python.org/moin/Generators
https://redirect.github.com/PythonNuts/wtfpython#-is-is-not-what-it-is
https://redirect.github.com/PythonNuts/wtfpython#-explanation-7
https://docs.python.org/3/c-api/long.htmlhttps://docs.python.org/3/c-api/long.html
https://redirect.github.com/PythonNuts/wtfpython#-a-tic-tac-toe-where-x-wins-in-the-first-attempt
https://redirect.github.com/PythonNuts/wtfpython#-explanation-8
https://redirect.github.com/PythonNuts/wtfpython/blob/master/images/tic-tac-toe/after_row_initialized.png
https://redirect.github.com/PythonNuts/wtfpython/blob/master/images/tic-tac-toe/after_board_initialized.png
https://redirect.github.com/PythonNuts/wtfpython#-the-sticky-output-function
https://redirect.github.com/PythonNuts/wtfpython#-explanation-9
https://redirect.github.com/PythonNuts/wtfpython#-is-not--is-not-is-not-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-10
https://redirect.github.com/PythonNuts/wtfpython#-the-surprising-comma
https://redirect.github.com/PythonNuts/wtfpython#-explanation-11
fixed in Python 3.6https://bugs.python.org/issue9232
thishttps://bugs.python.org/issue9232#msg248399
https://redirect.github.com/PythonNuts/wtfpython#-backslashes-at-the-end-of-string
https://redirect.github.com/PythonNuts/wtfpython#-explanation-12
https://redirect.github.com/PythonNuts/wtfpython#-not-knot
https://redirect.github.com/PythonNuts/wtfpython#-explanation-13
https://redirect.github.com/PythonNuts/wtfpython#-half-triple-quoted-strings
https://redirect.github.com/PythonNuts/wtfpython#-explanation-14
string literal concatenationhttps://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation
https://redirect.github.com/PythonNuts/wtfpython#-midnight-time-doesnt-exist
https://redirect.github.com/PythonNuts/wtfpython#-explanation-15
https://redirect.github.com/PythonNuts/wtfpython#-whats-wrong-with-booleans
https://redirect.github.com/PythonNuts/wtfpython#-explanation-16
answerhttps://stackoverflow.com/a/8169049/4354153
https://redirect.github.com/PythonNuts/wtfpython#-class-attributes-and-instance-attributes
https://redirect.github.com/PythonNuts/wtfpython#-explanation-17
https://redirect.github.com/PythonNuts/wtfpython#-yielding-none
https://redirect.github.com/PythonNuts/wtfpython#-explanation-18
https://stackoverflow.com/questions/32139885/yield-in-list-comprehensions-and-generator-expressionshttps://stackoverflow.com/questions/32139885/yield-in-list-comprehensions-and-generator-expressions
http://bugs.python.org/issue10544http://bugs.python.org/issue10544
https://redirect.github.com/PythonNuts/wtfpython#-mutating-the-immutable
https://redirect.github.com/PythonNuts/wtfpython#-explanation-19
https://docs.python.org/2/reference/datamodel.htmlhttps://docs.python.org/2/reference/datamodel.html
https://redirect.github.com/PythonNuts/wtfpython#-the-disappearing-variable-from-outer-scope
https://redirect.github.com/PythonNuts/wtfpython#-explanation-20
https://docs.python.org/3/reference/compound_stmts.html#excepthttps://docs.python.org/3/reference/compound_stmts.html#except
https://redirect.github.com/PythonNuts/wtfpython#-when-true-is-actually-false
https://redirect.github.com/PythonNuts/wtfpython#-explanation-21
https://redirect.github.com/PythonNuts/wtfpython#-from-filled-to-none-in-one-instruction
https://redirect.github.com/PythonNuts/wtfpython#-explanation-22
herehttp://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list
https://redirect.github.com/PythonNuts/wtfpython#-subclass-relationships-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-23
herehttps://www.naftaliharris.com/blog/python-subclass-intransitivity/
https://redirect.github.com/PythonNuts/wtfpython#-the-mysterious-key-type-conversion-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-24
https://redirect.github.com/PythonNuts/wtfpython#-lets-see-if-you-can-guess-this
https://redirect.github.com/PythonNuts/wtfpython#-explanation-25
Python language referencehttps://docs.python.org/2/reference/simple_stmts.html#assignment-statements
https://redirect.github.com/PythonNuts/wtfpython#section-appearances-are-deceptive
https://redirect.github.com/PythonNuts/wtfpython#-skipping-lines
https://redirect.github.com/PythonNuts/wtfpython#-explanation-26
code pointhttps://en.wikipedia.org/wiki/Code_point
https://redirect.github.com/PythonNuts/wtfpython#-teleportation-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-27
https://redirect.github.com/PythonNuts/wtfpython#-well-something-is-fishy
mixed_tabs_and_spaces.pyhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/mixed_tabs_and_spaces.py
https://redirect.github.com/PythonNuts/wtfpython#-explanation-28
https://redirect.github.com/PythonNuts/wtfpython#section-watch-out-for-the-landmines
https://redirect.github.com/PythonNuts/wtfpython#-modifying-a-dictionary-while-iterating-over-it
https://redirect.github.com/PythonNuts/wtfpython#-explanation-29
threadhttps://stackoverflow.com/questions/44763802/bug-in-python-dict
https://redirect.github.com/PythonNuts/wtfpython#-stubborn-del-operator-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-30
https://redirect.github.com/PythonNuts/wtfpython#-deleting-a-list-item-while-iterating
https://redirect.github.com/PythonNuts/wtfpython#-explanation-31
threadhttps://stackoverflow.com/questions/45946228/what-happens-when-you-try-to-delete-a-list-element-while-iterating-over-it
threadhttps://stackoverflow.com/questions/45877614/how-to-change-all-the-dictionary-keys-in-a-for-loop-with-d-items
https://redirect.github.com/PythonNuts/wtfpython#-loop-variables-leaking-out
https://redirect.github.com/PythonNuts/wtfpython#-explanation-32
What’s New In Python 3.0https://docs.python.org/3/whatsnew/3.0.html
https://redirect.github.com/PythonNuts/wtfpython#-beware-of-default-mutable-arguments
https://redirect.github.com/PythonNuts/wtfpython#-explanation-33
https://redirect.github.com/PythonNuts/wtfpython#-catching-the-exceptions
https://redirect.github.com/PythonNuts/wtfpython#-explanation-34
https://redirect.github.com/PythonNuts/wtfpython#-same-operands-different-story
https://redirect.github.com/PythonNuts/wtfpython#-explanation-35
https://redirect.github.com/PythonNuts/wtfpython#-the-out-of-scope-variable
https://redirect.github.com/PythonNuts/wtfpython#-explanation-36
thishttp://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html
https://redirect.github.com/PythonNuts/wtfpython#-be-careful-with-chained-operations
https://redirect.github.com/PythonNuts/wtfpython#-explanation-37
https://docs.python.org/2/reference/expressions.html#not-inhttps://docs.python.org/2/reference/expressions.html#not-in
https://redirect.github.com/PythonNuts/wtfpython#-name-resolution-ignoring-class-scope
https://redirect.github.com/PythonNuts/wtfpython#-explanation-38
https://redirect.github.com/PythonNuts/wtfpython#-needle-in-a-haystack
https://redirect.github.com/PythonNuts/wtfpython#-explanation-39
https://redirect.github.com/PythonNuts/wtfpython#section-the-hidden-treasures
https://redirect.github.com/PythonNuts/wtfpython#-okay-python-can-you-make-me-fly-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-40
classic XKCD comichttp://xkcd.com/353/
codehttps://github.com/python/cpython/blob/master/Lib/antigravity.py#L7-L17
XKCD's geohashing algorithmhttps://xkcd.com/426/
https://redirect.github.com/PythonNuts/wtfpython#-goto-but-why-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-41
announcedhttps://mail.python.org/pipermail/python-announce-list/2004-April/002982.html
reasonhttps://docs.python.org/3/faq/design.html#why-is-there-no-goto
https://redirect.github.com/PythonNuts/wtfpython#-brace-yourself-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-42
https://redirect.github.com/PythonNuts/wtfpython#-lets-meet-friendly-language-uncle-for-life-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-43
PEP-401https://www.python.org/dev/peps/pep-0401/
herehttps://www.python.org/dev/peps/pep-0401/
https://redirect.github.com/PythonNuts/wtfpython#-even-python-understands-that-love-is-complicated-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-44
PEP 20https://www.python.org/dev/peps/pep-0020
this.pyhttps://hg.python.org/cpython/file/c3896275c0f6/Lib/this.py
https://redirect.github.com/PythonNuts/wtfpython#-yes-it-exists
https://redirect.github.com/PythonNuts/wtfpython#-explanation-45
https://redirect.github.com/PythonNuts/wtfpython#-inpinity-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-46
https://redirect.github.com/PythonNuts/wtfpython#-mangling-time-
https://redirect.github.com/PythonNuts/wtfpython#-explanation-47
Name Manglinghttps://en.wikipedia.org/wiki/Name_mangling
https://redirect.github.com/PythonNuts/wtfpython#section-miscallaneous
https://redirect.github.com/PythonNuts/wtfpython#--is-faster
https://redirect.github.com/PythonNuts/wtfpython#-explanation-48
https://redirect.github.com/PythonNuts/wtfpython#-lets-make-a-giant-string
https://redirect.github.com/PythonNuts/wtfpython#-explanation-49
timeithttps://docs.python.org/3/library/timeit.html
https://redirect.github.com/PythonNuts/wtfpython#-explicit-typecast-of-strings
https://redirect.github.com/PythonNuts/wtfpython#-explanation-50
https://redirect.github.com/PythonNuts/wtfpython#-minor-ones
sequenceshttps://docs.python.org/3/glossary.html#term-sequence
threadhttps://stackoverflow.com/questions/3654830/why-are-there-no-and-operators-in-python
Global Interpreter Lockhttps://wiki.python.org/moin/GlobalInterpreterLock
multiprocessinghttps://docs.python.org/2/library/multiprocessing.html
interesting storyhttp://chris.improbable.org/2014/8/25/adventures-in-unicode-digits/
https://redirect.github.com/PythonNuts/wtfpython#contributing
CONTRIBUTING.mdhttps://redirect.github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTING.md
issuehttps://github.com/satwikkansal/wtfpython/issues/new
channelhttps://gitter.im/wtfpython/Lobby
https://redirect.github.com/PythonNuts/wtfpython#acknowledgements
wtfjshttps://github.com/denysdovhan/wtfjs
https://redirect.github.com/PythonNuts/wtfpython#some-nice-links
https://www.youtube.com/watch?v=sH4XF6pKKmkhttps://www.youtube.com/watch?v=sH4XF6pKKmk
https://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_pythonhttps://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_python
https://sopython.com/wiki/Common_Gotchas_In_Pythonhttps://sopython.com/wiki/Common_Gotchas_In_Python
https://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmineshttps://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmines
https://stackoverflow.com/questions/1011431/common-pitfalls-in-pythonhttps://stackoverflow.com/questions/1011431/common-pitfalls-in-python
https://www.python.org/doc/humor/https://www.python.org/doc/humor/
https://www.satwikkansal.xyz/archives/posts/python/My-Python-archives/https://www.satwikkansal.xyz/archives/posts/python/My-Python-archives/
https://redirect.github.com/PythonNuts/wtfpython#-license
http://www.wtfpl.net
Satwik Kansalhttps://satwikkansal.xyz
https://redirect.github.com/PythonNuts/wtfpython#help
https://redirect.github.com/PythonNuts/wtfpython#want-to-share-wtfpython-with-friends
Twitterhttps://twitter.com/intent/tweet?url=https://github.com/satwikkansal/wtfpython&hastags=python,wtfpython
Linkedinhttps://www.linkedin.com/shareArticle?url=https://github.com/satwikkansal&title=What%20the%20f*ck%20Python!&summary=An%20interesting%20collection%20of%20subtle%20and%20tricky%20Python%20snippets.
https://redirect.github.com/PythonNuts/wtfpython#need-a-pdf-version
herehttps://satwikkansal.xyz/wtfpython-pdf/
Readmehttps://redirect.github.com/PythonNuts/wtfpython#readme-ov-file
WTFPL licensehttps://redirect.github.com/PythonNuts/wtfpython#WTFPL-1-ov-file
Code of conducthttps://redirect.github.com/PythonNuts/wtfpython#coc-ov-file
Contributinghttps://redirect.github.com/PythonNuts/wtfpython#contributing-ov-file
Activityhttps://redirect.github.com/PythonNuts/wtfpython/activity
Custom propertieshttps://redirect.github.com/PythonNuts/wtfpython/custom-properties
0 forkshttps://redirect.github.com/PythonNuts/wtfpython/forks
Report repositoryhttps://redirect.github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FPythonNuts%2Fwtfpython&report=PythonNuts+%28user%29
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.