René's URL Explorer Experiment


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

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: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:02bf2c59-c699-d88f-b785-91472fccf183
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id8E56:3D0535:E61AFB:134BCBF:69698CB7
html-safe-noncecaa1dc6aaedc0577c3860c136a727c5348a5324cc9f70ad83bf75971323c6fbc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTU2OjNEMDUzNTpFNjFBRkI6MTM0QkNCRjo2OTY5OENCNyIsInZpc2l0b3JfaWQiOiI3OTIwNTEyMjc2NTI1MzIxMzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3f4db3e5dfb41f4779823361e6e20adb8a8cd5a598f59de23464967008f8199c
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
None3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751
turbo-cache-controlno-preview
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
releaseaf80af7cc9e3de9c336f18b208a600950a3c187c
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PythonNuts/wtfpython#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonNuts%2Fwtfpython
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%2FPythonNuts%2Fwtfpython
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&source=header-repo&source_repo=PythonNuts%2Fwtfpython
Reloadhttps://github.com/PythonNuts/wtfpython
Reloadhttps://github.com/PythonNuts/wtfpython
Reloadhttps://github.com/PythonNuts/wtfpython
PythonNuts https://github.com/PythonNuts
wtfpythonhttps://github.com/PythonNuts/wtfpython
satwikkansal/wtfpythonhttps://github.com/satwikkansal/wtfpython
Notifications https://github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Fork 0 https://github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Star 0 https://github.com/login?return_to=%2FPythonNuts%2Fwtfpython
WTFPL license https://github.com/PythonNuts/wtfpython/blob/master/LICENSE
0 stars https://github.com/PythonNuts/wtfpython/stargazers
2.7k forks https://github.com/PythonNuts/wtfpython/forks
Branches https://github.com/PythonNuts/wtfpython/branches
Tags https://github.com/PythonNuts/wtfpython/tags
Activity https://github.com/PythonNuts/wtfpython/activity
Star https://github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Notifications https://github.com/login?return_to=%2FPythonNuts%2Fwtfpython
Code https://github.com/PythonNuts/wtfpython
Pull requests 0 https://github.com/PythonNuts/wtfpython/pulls
Actions https://github.com/PythonNuts/wtfpython/actions
Projects 0 https://github.com/PythonNuts/wtfpython/projects
Wiki https://github.com/PythonNuts/wtfpython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/PythonNuts/wtfpython/security
Please reload this pagehttps://github.com/PythonNuts/wtfpython
Insights https://github.com/PythonNuts/wtfpython/pulse
Code https://github.com/PythonNuts/wtfpython
Pull requests https://github.com/PythonNuts/wtfpython/pulls
Actions https://github.com/PythonNuts/wtfpython/actions
Projects https://github.com/PythonNuts/wtfpython/projects
Wiki https://github.com/PythonNuts/wtfpython/wiki
Security https://github.com/PythonNuts/wtfpython/security
Insights https://github.com/PythonNuts/wtfpython/pulse
Brancheshttps://github.com/PythonNuts/wtfpython/branches
Tagshttps://github.com/PythonNuts/wtfpython/tags
https://github.com/PythonNuts/wtfpython/branches
https://github.com/PythonNuts/wtfpython/tags
201 Commitshttps://github.com/PythonNuts/wtfpython/commits/master/
https://github.com/PythonNuts/wtfpython/commits/master/
imageshttps://github.com/PythonNuts/wtfpython/tree/master/images
imageshttps://github.com/PythonNuts/wtfpython/tree/master/images
irrelevanthttps://github.com/PythonNuts/wtfpython/tree/master/irrelevant
irrelevanthttps://github.com/PythonNuts/wtfpython/tree/master/irrelevant
wtfpython-pypihttps://github.com/PythonNuts/wtfpython/tree/master/wtfpython-pypi
wtfpython-pypihttps://github.com/PythonNuts/wtfpython/tree/master/wtfpython-pypi
.gitattributeshttps://github.com/PythonNuts/wtfpython/blob/master/.gitattributes
.gitattributeshttps://github.com/PythonNuts/wtfpython/blob/master/.gitattributes
.gitignorehttps://github.com/PythonNuts/wtfpython/blob/master/.gitignore
.gitignorehttps://github.com/PythonNuts/wtfpython/blob/master/.gitignore
.npmignorehttps://github.com/PythonNuts/wtfpython/blob/master/.npmignore
.npmignorehttps://github.com/PythonNuts/wtfpython/blob/master/.npmignore
CONTRIBUTING.mdhttps://github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTING.md
CONTRIBUTING.mdhttps://github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTING.md
CONTRIBUTORS.mdhttps://github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTORS.md
CONTRIBUTORS.mdhttps://github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTORS.md
LICENSEhttps://github.com/PythonNuts/wtfpython/blob/master/LICENSE
LICENSEhttps://github.com/PythonNuts/wtfpython/blob/master/LICENSE
README.mdhttps://github.com/PythonNuts/wtfpython/blob/master/README.md
README.mdhttps://github.com/PythonNuts/wtfpython/blob/master/README.md
code-of-conduct.mdhttps://github.com/PythonNuts/wtfpython/blob/master/code-of-conduct.md
code-of-conduct.mdhttps://github.com/PythonNuts/wtfpython/blob/master/code-of-conduct.md
mixed_tabs_and_spaces.pyhttps://github.com/PythonNuts/wtfpython/blob/master/mixed_tabs_and_spaces.py
mixed_tabs_and_spaces.pyhttps://github.com/PythonNuts/wtfpython/blob/master/mixed_tabs_and_spaces.py
package.jsonhttps://github.com/PythonNuts/wtfpython/blob/master/package.json
package.jsonhttps://github.com/PythonNuts/wtfpython/blob/master/package.json
wtfpythonhttps://github.com/PythonNuts/wtfpython/blob/master/wtfpython
wtfpythonhttps://github.com/PythonNuts/wtfpython/blob/master/wtfpython
READMEhttps://github.com/PythonNuts/wtfpython
Code of conducthttps://github.com/PythonNuts/wtfpython
Contributinghttps://github.com/PythonNuts/wtfpython
WTFPL licensehttps://github.com/PythonNuts/wtfpython
https://github.com/PythonNuts/wtfpython/blob/master/images/logo.png
https://github.com/PythonNuts/wtfpython#-what-the-fck-python--
http://www.wtfpl.net
herehttps://github.com/satwikkansal/wtfpython/releases/
https://github.com/PythonNuts/wtfpython#table-of-contents
Structure of the Exampleshttps://github.com/PythonNuts/wtfpython#structure-of-the-examples
Usagehttps://github.com/PythonNuts/wtfpython#usage
👀 Exampleshttps://github.com/PythonNuts/wtfpython#-examples
Section: Strain your brain!https://github.com/PythonNuts/wtfpython#section-strain-your-brain
▶ Strings can be tricky sometimes *https://github.com/PythonNuts/wtfpython#-strings-can-be-tricky-sometimes-
▶ Time for some hash brownies!https://github.com/PythonNuts/wtfpython#-time-for-some-hash-brownies
▶ Return return everywhere!https://github.com/PythonNuts/wtfpython#-return-return-everywhere
▶ Deep down, we're all the same. *https://github.com/PythonNuts/wtfpython#-deep-down-were-all-the-same-
▶ For what?https://github.com/PythonNuts/wtfpython#-for-what
▶ Evaluation time discrepancyhttps://github.com/PythonNuts/wtfpython#-evaluation-time-discrepancy
▶ is is not what it is!https://github.com/PythonNuts/wtfpython#-is-is-not-what-it-is
▶ A tic-tac-toe where X wins in the first attempt!https://github.com/PythonNuts/wtfpython#-a-tic-tac-toe-where-x-wins-in-the-first-attempt
▶ The sticky output functionhttps://github.com/PythonNuts/wtfpython#-the-sticky-output-function
▶ is not ... is not is (not ...)https://github.com/PythonNuts/wtfpython#-is-not--is-not-is-not-
▶ The surprising commahttps://github.com/PythonNuts/wtfpython#-the-surprising-comma
▶ Backslashes at the end of stringhttps://github.com/PythonNuts/wtfpython#-backslashes-at-the-end-of-string
▶ not knot!https://github.com/PythonNuts/wtfpython#-not-knot
▶ Half triple-quoted stringshttps://github.com/PythonNuts/wtfpython#-half-triple-quoted-strings
▶ Midnight time doesn't exist?https://github.com/PythonNuts/wtfpython#-midnight-time-doesnt-exist
▶ What's wrong with booleans?https://github.com/PythonNuts/wtfpython#-whats-wrong-with-booleans
▶ Class attributes and instance attributeshttps://github.com/PythonNuts/wtfpython#-class-attributes-and-instance-attributes
▶ yielding Nonehttps://github.com/PythonNuts/wtfpython#-yielding-none
▶ Mutating the immutable!https://github.com/PythonNuts/wtfpython#-mutating-the-immutable
▶ The disappearing variable from outer scopehttps://github.com/PythonNuts/wtfpython#-the-disappearing-variable-from-outer-scope
▶ When True is actually Falsehttps://github.com/PythonNuts/wtfpython#-when-true-is-actually-false
▶ From filled to None in one instruction...https://github.com/PythonNuts/wtfpython#-from-filled-to-none-in-one-instruction
▶ Subclass relationships *https://github.com/PythonNuts/wtfpython#-subclass-relationships-
▶ The mysterious key type conversion *https://github.com/PythonNuts/wtfpython#-the-mysterious-key-type-conversion-
▶ Let's see if you can guess this?https://github.com/PythonNuts/wtfpython#-lets-see-if-you-can-guess-this
Section: Appearances are deceptive!https://github.com/PythonNuts/wtfpython#section-appearances-are-deceptive
▶ Skipping lines?https://github.com/PythonNuts/wtfpython#-skipping-lines
▶ Teleportation *https://github.com/PythonNuts/wtfpython#-teleportation-
▶ Well, something is fishy...https://github.com/PythonNuts/wtfpython#-well-something-is-fishy
Section: Watch out for the landmines!https://github.com/PythonNuts/wtfpython#section-watch-out-for-the-landmines
▶ Modifying a dictionary while iterating over ithttps://github.com/PythonNuts/wtfpython#-modifying-a-dictionary-while-iterating-over-it
▶ Stubborn del operator *https://github.com/PythonNuts/wtfpython#-stubborn-del-operator-
▶ Deleting a list item while iteratinghttps://github.com/PythonNuts/wtfpython#-deleting-a-list-item-while-iterating
▶ Loop variables leaking out!https://github.com/PythonNuts/wtfpython#-loop-variables-leaking-out
▶ Beware of default mutable arguments!https://github.com/PythonNuts/wtfpython#-beware-of-default-mutable-arguments
▶ Catching the Exceptionshttps://github.com/PythonNuts/wtfpython#-catching-the-exceptions
▶ Same operands, different story!https://github.com/PythonNuts/wtfpython#-same-operands-different-story
▶ The out of scope variablehttps://github.com/PythonNuts/wtfpython#-the-out-of-scope-variable
▶ Be careful with chained operationshttps://github.com/PythonNuts/wtfpython#-be-careful-with-chained-operations
▶ Name resolution ignoring class scopehttps://github.com/PythonNuts/wtfpython#-name-resolution-ignoring-class-scope
▶ Needle in a Haystackhttps://github.com/PythonNuts/wtfpython#-needle-in-a-haystack
Section: The Hidden treasures!https://github.com/PythonNuts/wtfpython#section-the-hidden-treasures
▶ Okay Python, Can you make me fly? *https://github.com/PythonNuts/wtfpython#-okay-python-can-you-make-me-fly-
▶ goto, but why? *https://github.com/PythonNuts/wtfpython#-goto-but-why-
▶ Brace yourself! *https://github.com/PythonNuts/wtfpython#-brace-yourself-
▶ Let's meet Friendly Language Uncle For Life *https://github.com/PythonNuts/wtfpython#-lets-meet-friendly-language-uncle-for-life-
▶ Even Python understands that love is complicated *https://github.com/PythonNuts/wtfpython#-even-python-understands-that-love-is-complicated-
▶ Yes, it exists!https://github.com/PythonNuts/wtfpython#-yes-it-exists
▶ Inpinity *https://github.com/PythonNuts/wtfpython#-inpinity-
▶ Mangling time! *https://github.com/PythonNuts/wtfpython#-mangling-time-
Section: Miscallaneoushttps://github.com/PythonNuts/wtfpython#section-miscallaneous
▶ += is fasterhttps://github.com/PythonNuts/wtfpython#--is-faster
▶ Let's make a giant string!https://github.com/PythonNuts/wtfpython#-lets-make-a-giant-string
▶ Explicit typecast of stringshttps://github.com/PythonNuts/wtfpython#-explicit-typecast-of-strings
▶ Minor Oneshttps://github.com/PythonNuts/wtfpython#-minor-ones
Contributinghttps://github.com/PythonNuts/wtfpython#contributing
Acknowledgementshttps://github.com/PythonNuts/wtfpython#acknowledgements
🎓 Licensehttps://github.com/PythonNuts/wtfpython#-license
Helphttps://github.com/PythonNuts/wtfpython#help
Want to share wtfpython with friends?https://github.com/PythonNuts/wtfpython#want-to-share-wtfpython-with-friends
Need a pdf version?https://github.com/PythonNuts/wtfpython#need-a-pdf-version
https://github.com/PythonNuts/wtfpython#structure-of-the-examples
https://github.com/PythonNuts/wtfpython#-some-fancy-title-
https://github.com/PythonNuts/wtfpython#-explanation
https://github.com/PythonNuts/wtfpython#usage
herehttps://github.com/satwikkansal/wtfPython
wtfpythonhttps://www.npmjs.com/package/wtfpython
wtfpythonhttps://pypi.python.org/pypi/wtfpython
https://github.com/PythonNuts/wtfpython#-examples
https://github.com/PythonNuts/wtfpython#section-strain-your-brain
https://github.com/PythonNuts/wtfpython#-strings-can-be-tricky-sometimes-
https://github.com/PythonNuts/wtfpython#-explanation-1
https://github.com/PythonNuts/wtfpython/blob/master/images/string-intern/string_intern.png
https://github.com/PythonNuts/wtfpython#-time-for-some-hash-brownies
https://github.com/PythonNuts/wtfpython#-explanation-2
answerhttps://stackoverflow.com/a/32211042/4354153
https://github.com/PythonNuts/wtfpython#-return-return-everywhere
https://github.com/PythonNuts/wtfpython#-explanation-3
https://github.com/PythonNuts/wtfpython#-deep-down-were-all-the-same-
https://github.com/PythonNuts/wtfpython#-explanation-4
https://github.com/PythonNuts/wtfpython#-for-what
https://github.com/PythonNuts/wtfpython#-explanation-5
Python grammarhttps://docs.python.org/3/reference/grammar.html
https://github.com/PythonNuts/wtfpython#-evaluation-time-discrepancy
https://github.com/PythonNuts/wtfpython#-explanation-6
generatorhttps://wiki.python.org/moin/Generators
https://github.com/PythonNuts/wtfpython#-is-is-not-what-it-is
https://github.com/PythonNuts/wtfpython#-explanation-7
https://docs.python.org/3/c-api/long.htmlhttps://docs.python.org/3/c-api/long.html
https://github.com/PythonNuts/wtfpython#-a-tic-tac-toe-where-x-wins-in-the-first-attempt
https://github.com/PythonNuts/wtfpython#-explanation-8
https://github.com/PythonNuts/wtfpython/blob/master/images/tic-tac-toe/after_row_initialized.png
https://github.com/PythonNuts/wtfpython/blob/master/images/tic-tac-toe/after_board_initialized.png
https://github.com/PythonNuts/wtfpython#-the-sticky-output-function
https://github.com/PythonNuts/wtfpython#-explanation-9
https://github.com/PythonNuts/wtfpython#-is-not--is-not-is-not-
https://github.com/PythonNuts/wtfpython#-explanation-10
https://github.com/PythonNuts/wtfpython#-the-surprising-comma
https://github.com/PythonNuts/wtfpython#-explanation-11
fixed in Python 3.6https://bugs.python.org/issue9232
thishttps://bugs.python.org/issue9232#msg248399
https://github.com/PythonNuts/wtfpython#-backslashes-at-the-end-of-string
https://github.com/PythonNuts/wtfpython#-explanation-12
https://github.com/PythonNuts/wtfpython#-not-knot
https://github.com/PythonNuts/wtfpython#-explanation-13
https://github.com/PythonNuts/wtfpython#-half-triple-quoted-strings
https://github.com/PythonNuts/wtfpython#-explanation-14
string literal concatenationhttps://docs.python.org/2/reference/lexical_analysis.html#string-literal-concatenation
https://github.com/PythonNuts/wtfpython#-midnight-time-doesnt-exist
https://github.com/PythonNuts/wtfpython#-explanation-15
https://github.com/PythonNuts/wtfpython#-whats-wrong-with-booleans
https://github.com/PythonNuts/wtfpython#-explanation-16
answerhttps://stackoverflow.com/a/8169049/4354153
https://github.com/PythonNuts/wtfpython#-class-attributes-and-instance-attributes
https://github.com/PythonNuts/wtfpython#-explanation-17
https://github.com/PythonNuts/wtfpython#-yielding-none
https://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://github.com/PythonNuts/wtfpython#-mutating-the-immutable
https://github.com/PythonNuts/wtfpython#-explanation-19
https://docs.python.org/2/reference/datamodel.htmlhttps://docs.python.org/2/reference/datamodel.html
https://github.com/PythonNuts/wtfpython#-the-disappearing-variable-from-outer-scope
https://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://github.com/PythonNuts/wtfpython#-when-true-is-actually-false
https://github.com/PythonNuts/wtfpython#-explanation-21
https://github.com/PythonNuts/wtfpython#-from-filled-to-none-in-one-instruction
https://github.com/PythonNuts/wtfpython#-explanation-22
herehttp://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list
https://github.com/PythonNuts/wtfpython#-subclass-relationships-
https://github.com/PythonNuts/wtfpython#-explanation-23
herehttps://www.naftaliharris.com/blog/python-subclass-intransitivity/
https://github.com/PythonNuts/wtfpython#-the-mysterious-key-type-conversion-
https://github.com/PythonNuts/wtfpython#-explanation-24
https://github.com/PythonNuts/wtfpython#-lets-see-if-you-can-guess-this
https://github.com/PythonNuts/wtfpython#-explanation-25
Python language referencehttps://docs.python.org/2/reference/simple_stmts.html#assignment-statements
https://github.com/PythonNuts/wtfpython#section-appearances-are-deceptive
https://github.com/PythonNuts/wtfpython#-skipping-lines
https://github.com/PythonNuts/wtfpython#-explanation-26
code pointhttps://en.wikipedia.org/wiki/Code_point
https://github.com/PythonNuts/wtfpython#-teleportation-
https://github.com/PythonNuts/wtfpython#-explanation-27
https://github.com/PythonNuts/wtfpython#-well-something-is-fishy
mixed_tabs_and_spaces.pyhttps://github.com/PythonNuts/wtfpython/blob/master/mixed_tabs_and_spaces.py
https://github.com/PythonNuts/wtfpython#-explanation-28
https://github.com/PythonNuts/wtfpython#section-watch-out-for-the-landmines
https://github.com/PythonNuts/wtfpython#-modifying-a-dictionary-while-iterating-over-it
https://github.com/PythonNuts/wtfpython#-explanation-29
threadhttps://stackoverflow.com/questions/44763802/bug-in-python-dict
https://github.com/PythonNuts/wtfpython#-stubborn-del-operator-
https://github.com/PythonNuts/wtfpython#-explanation-30
https://github.com/PythonNuts/wtfpython#-deleting-a-list-item-while-iterating
https://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://github.com/PythonNuts/wtfpython#-loop-variables-leaking-out
https://github.com/PythonNuts/wtfpython#-explanation-32
What’s New In Python 3.0https://docs.python.org/3/whatsnew/3.0.html
https://github.com/PythonNuts/wtfpython#-beware-of-default-mutable-arguments
https://github.com/PythonNuts/wtfpython#-explanation-33
https://github.com/PythonNuts/wtfpython#-catching-the-exceptions
https://github.com/PythonNuts/wtfpython#-explanation-34
https://github.com/PythonNuts/wtfpython#-same-operands-different-story
https://github.com/PythonNuts/wtfpython#-explanation-35
https://github.com/PythonNuts/wtfpython#-the-out-of-scope-variable
https://github.com/PythonNuts/wtfpython#-explanation-36
thishttp://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html
https://github.com/PythonNuts/wtfpython#-be-careful-with-chained-operations
https://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://github.com/PythonNuts/wtfpython#-name-resolution-ignoring-class-scope
https://github.com/PythonNuts/wtfpython#-explanation-38
https://github.com/PythonNuts/wtfpython#-needle-in-a-haystack
https://github.com/PythonNuts/wtfpython#-explanation-39
https://github.com/PythonNuts/wtfpython#section-the-hidden-treasures
https://github.com/PythonNuts/wtfpython#-okay-python-can-you-make-me-fly-
https://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://github.com/PythonNuts/wtfpython#-goto-but-why-
https://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://github.com/PythonNuts/wtfpython#-brace-yourself-
https://github.com/PythonNuts/wtfpython#-explanation-42
https://github.com/PythonNuts/wtfpython#-lets-meet-friendly-language-uncle-for-life-
https://github.com/PythonNuts/wtfpython#-explanation-43
PEP-401https://www.python.org/dev/peps/pep-0401/
herehttps://www.python.org/dev/peps/pep-0401/
https://github.com/PythonNuts/wtfpython#-even-python-understands-that-love-is-complicated-
https://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://github.com/PythonNuts/wtfpython#-yes-it-exists
https://github.com/PythonNuts/wtfpython#-explanation-45
https://github.com/PythonNuts/wtfpython#-inpinity-
https://github.com/PythonNuts/wtfpython#-explanation-46
https://github.com/PythonNuts/wtfpython#-mangling-time-
https://github.com/PythonNuts/wtfpython#-explanation-47
Name Manglinghttps://en.wikipedia.org/wiki/Name_mangling
https://github.com/PythonNuts/wtfpython#section-miscallaneous
https://github.com/PythonNuts/wtfpython#--is-faster
https://github.com/PythonNuts/wtfpython#-explanation-48
https://github.com/PythonNuts/wtfpython#-lets-make-a-giant-string
https://github.com/PythonNuts/wtfpython#-explanation-49
timeithttps://docs.python.org/3/library/timeit.html
https://github.com/PythonNuts/wtfpython#-explicit-typecast-of-strings
https://github.com/PythonNuts/wtfpython#-explanation-50
https://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://github.com/PythonNuts/wtfpython#contributing
CONTRIBUTING.mdhttps://github.com/PythonNuts/wtfpython/blob/master/CONTRIBUTING.md
issuehttps://github.com/satwikkansal/wtfpython/issues/new
channelhttps://gitter.im/wtfpython/Lobby
https://github.com/PythonNuts/wtfpython#acknowledgements
wtfjshttps://github.com/denysdovhan/wtfjs
https://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://github.com/PythonNuts/wtfpython#-license
http://www.wtfpl.net
Satwik Kansalhttps://satwikkansal.xyz
https://github.com/PythonNuts/wtfpython#help
https://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://github.com/PythonNuts/wtfpython#need-a-pdf-version
herehttps://satwikkansal.xyz/wtfpython-pdf/
Readme https://github.com/PythonNuts/wtfpython#readme-ov-file
WTFPL license https://github.com/PythonNuts/wtfpython#WTFPL-1-ov-file
Code of conduct https://github.com/PythonNuts/wtfpython#coc-ov-file
Contributing https://github.com/PythonNuts/wtfpython#contributing-ov-file
Please reload this pagehttps://github.com/PythonNuts/wtfpython
Activityhttps://github.com/PythonNuts/wtfpython/activity
Custom propertieshttps://github.com/PythonNuts/wtfpython/custom-properties
0 starshttps://github.com/PythonNuts/wtfpython/stargazers
2 watchinghttps://github.com/PythonNuts/wtfpython/watchers
0 forkshttps://github.com/PythonNuts/wtfpython/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2FPythonNuts%2Fwtfpython&report=PythonNuts+%28user%29
Releaseshttps://github.com/PythonNuts/wtfpython/releases
1 tags https://github.com/PythonNuts/wtfpython/tags
Packages 0https://github.com/orgs/PythonNuts/packages?repo_name=wtfpython
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.