RenΓ©'s URL Explorer Experiment


Title: GitHub - lsaa2014/wtfpython: A collection of interesting, subtle, and tricky Python snippets.

Open Graph Title: GitHub - lsaa2014/wtfpython: A collection of interesting, subtle, and tricky Python snippets.

X Title: GitHub - lsaa2014/wtfpython: A collection of interesting, subtle, and tricky Python snippets.

Description: A collection of interesting, subtle, and tricky Python snippets. - lsaa2014/wtfpython

Open Graph Description: A collection of interesting, subtle, and tricky Python snippets. - lsaa2014/wtfpython

X Description: A collection of interesting, subtle, and tricky Python snippets. - lsaa2014/wtfpython

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:036391f6-620e-23dd-7d17-78a9c3c9f37e
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id8CC0:154180:31C074F:419B439:696B8AC5
html-safe-noncea3ffe4e9c7cab8629fbad9a7fca555b86a7bbde0ffc93104ca7e35831cdf1b46
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0MwOjE1NDE4MDozMUMwNzRGOjQxOUI0Mzk6Njk2QjhBQzUiLCJ2aXNpdG9yX2lkIjoiNjA5NTY3MjE4MTAyODI2MDU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac747bfaace014928d24d91040c60417a58f6c03488b27386202fd087a9343f81c
hovercard-subject-tagrepository:104392836
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/lsaa2014/wtfpython
twitter:imagehttps://opengraph.githubassets.com/e7855d43fe15f47c3d162f783e6d9c81d631c6d88efcf8db1c9f44eb1e718a38/lsaa2014/wtfpython
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e7855d43fe15f47c3d162f783e6d9c81d631c6d88efcf8db1c9f44eb1e718a38/lsaa2014/wtfpython
og:image:altA collection of interesting, subtle, and tricky Python snippets. - lsaa2014/wtfpython
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/lsaa2014/wtfpython git https://github.com/lsaa2014/wtfpython.git
octolytics-dimension-user_id10039116
octolytics-dimension-user_loginlsaa2014
octolytics-dimension-repository_id104392836
octolytics-dimension-repository_nwolsaa2014/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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lsaa2014/wtfpython#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flsaa2014%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%2Flsaa2014%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=lsaa2014%2Fwtfpython
Reloadhttps://github.com/lsaa2014/wtfpython
Reloadhttps://github.com/lsaa2014/wtfpython
Reloadhttps://github.com/lsaa2014/wtfpython
lsaa2014 https://github.com/lsaa2014
wtfpythonhttps://github.com/lsaa2014/wtfpython
satwikkansal/wtfpythonhttps://github.com/satwikkansal/wtfpython
Notifications https://github.com/login?return_to=%2Flsaa2014%2Fwtfpython
Fork 0 https://github.com/login?return_to=%2Flsaa2014%2Fwtfpython
Star 0 https://github.com/login?return_to=%2Flsaa2014%2Fwtfpython
bit.ly/wtfpythonhttps://bit.ly/wtfpython
WTFPL license https://github.com/lsaa2014/wtfpython/blob/master/LICENSE
0 stars https://github.com/lsaa2014/wtfpython/stargazers
2.7k forks https://github.com/lsaa2014/wtfpython/forks
Branches https://github.com/lsaa2014/wtfpython/branches
Tags https://github.com/lsaa2014/wtfpython/tags
Activity https://github.com/lsaa2014/wtfpython/activity
Star https://github.com/login?return_to=%2Flsaa2014%2Fwtfpython
Notifications https://github.com/login?return_to=%2Flsaa2014%2Fwtfpython
Code https://github.com/lsaa2014/wtfpython
Pull requests 0 https://github.com/lsaa2014/wtfpython/pulls
Actions https://github.com/lsaa2014/wtfpython/actions
Projects 0 https://github.com/lsaa2014/wtfpython/projects
Wiki https://github.com/lsaa2014/wtfpython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/lsaa2014/wtfpython/security
Please reload this pagehttps://github.com/lsaa2014/wtfpython
Insights https://github.com/lsaa2014/wtfpython/pulse
Code https://github.com/lsaa2014/wtfpython
Pull requests https://github.com/lsaa2014/wtfpython/pulls
Actions https://github.com/lsaa2014/wtfpython/actions
Projects https://github.com/lsaa2014/wtfpython/projects
Wiki https://github.com/lsaa2014/wtfpython/wiki
Security https://github.com/lsaa2014/wtfpython/security
Insights https://github.com/lsaa2014/wtfpython/pulse
Brancheshttps://github.com/lsaa2014/wtfpython/branches
Tagshttps://github.com/lsaa2014/wtfpython/tags
https://github.com/lsaa2014/wtfpython/branches
https://github.com/lsaa2014/wtfpython/tags
122 Commitshttps://github.com/lsaa2014/wtfpython/commits/master/
https://github.com/lsaa2014/wtfpython/commits/master/
images/tic-tac-toehttps://github.com/lsaa2014/wtfpython/tree/master/images/tic-tac-toe
images/tic-tac-toehttps://github.com/lsaa2014/wtfpython/tree/master/images/tic-tac-toe
.gitattributeshttps://github.com/lsaa2014/wtfpython/blob/master/.gitattributes
.gitattributeshttps://github.com/lsaa2014/wtfpython/blob/master/.gitattributes
.gitignorehttps://github.com/lsaa2014/wtfpython/blob/master/.gitignore
.gitignorehttps://github.com/lsaa2014/wtfpython/blob/master/.gitignore
.npmignorehttps://github.com/lsaa2014/wtfpython/blob/master/.npmignore
.npmignorehttps://github.com/lsaa2014/wtfpython/blob/master/.npmignore
CONTRIBUTING.mdhttps://github.com/lsaa2014/wtfpython/blob/master/CONTRIBUTING.md
CONTRIBUTING.mdhttps://github.com/lsaa2014/wtfpython/blob/master/CONTRIBUTING.md
LICENSEhttps://github.com/lsaa2014/wtfpython/blob/master/LICENSE
LICENSEhttps://github.com/lsaa2014/wtfpython/blob/master/LICENSE
README.mdhttps://github.com/lsaa2014/wtfpython/blob/master/README.md
README.mdhttps://github.com/lsaa2014/wtfpython/blob/master/README.md
mixed_tabs_and_spaces.pyhttps://github.com/lsaa2014/wtfpython/blob/master/mixed_tabs_and_spaces.py
mixed_tabs_and_spaces.pyhttps://github.com/lsaa2014/wtfpython/blob/master/mixed_tabs_and_spaces.py
package.jsonhttps://github.com/lsaa2014/wtfpython/blob/master/package.json
package.jsonhttps://github.com/lsaa2014/wtfpython/blob/master/package.json
wtfpythonhttps://github.com/lsaa2014/wtfpython/blob/master/wtfpython
wtfpythonhttps://github.com/lsaa2014/wtfpython/blob/master/wtfpython
READMEhttps://github.com/lsaa2014/wtfpython
Contributinghttps://github.com/lsaa2014/wtfpython
Licensehttps://github.com/lsaa2014/wtfpython
https://github.com/lsaa2014/wtfpython#-what-the-fck-python--
http://www.wtfpl.net
https://github.com/lsaa2014/wtfpython#table-of-contents
Structure of the Exampleshttps://github.com/lsaa2014/wtfpython#structure-of-the-examples
Some fancy Titlehttps://github.com/lsaa2014/wtfpython#some-fancy-title
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation
Usagehttps://github.com/lsaa2014/wtfpython#usage
πŸ‘€ Exampleshttps://github.com/lsaa2014/wtfpython#-examples
Skipping lines?https://github.com/lsaa2014/wtfpython#skipping-lines
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation
Well, something is fishy...https://github.com/lsaa2014/wtfpython#well-something-is-fishy
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-1
Time for some hash brownies!https://github.com/lsaa2014/wtfpython#time-for-some-hash-brownies
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-2
Evaluation time discrepancyhttps://github.com/lsaa2014/wtfpython#evaluation-time-discrepancy
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-3
Modifying a dictionary while iterating over ithttps://github.com/lsaa2014/wtfpython#modifying-a-dictionary-while-iterating-over-it
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-1
Deleting a list item while iterating over ithttps://github.com/lsaa2014/wtfpython#deleting-a-list-item-while-iterating-over-it
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-2
Backslashes at the end of stringhttps://github.com/lsaa2014/wtfpython#backslashes-at-the-end-of-string
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-4
Let's make a giant string!https://github.com/lsaa2014/wtfpython#lets-make-a-giant-string
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-5
String concatenation interpreter optimizations.https://github.com/lsaa2014/wtfpython#string-concatenation-interpreter-optimizations
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-3
Yes, it exists!https://github.com/lsaa2014/wtfpython#yes-it-exists
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-4
is is not what it is!https://github.com/lsaa2014/wtfpython#is-is-not-what-it-is
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-5
is not ... is not is (not ...)https://github.com/lsaa2014/wtfpython#is-not--is-not-is-not-
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-6
The function inside loop sticks to the same outputhttps://github.com/lsaa2014/wtfpython#the-function-inside-loop-sticks-to-the-same-output
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-7
Loop variables leaking out of local scope!https://github.com/lsaa2014/wtfpython#loop-variables-leaking-out-of-local-scope
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-6
A tic-tac-toe where X wins in the first attempt!https://github.com/lsaa2014/wtfpython#a-tic-tac-toe-where-x-wins-in-the-first-attempt
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-7
Beware of default mutable arguments!https://github.com/lsaa2014/wtfpython#beware-of-default-mutable-arguments
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-8
Same operands, different story!https://github.com/lsaa2014/wtfpython#same-operands-different-story
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-9
Mutating the immutable!https://github.com/lsaa2014/wtfpython#mutating-the-immutable
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-10
Using a variable not defined in scopehttps://github.com/lsaa2014/wtfpython#using-a-variable-not-defined-in-scope
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-11
The disappearing variable from outer scopehttps://github.com/lsaa2014/wtfpython#the-disappearing-variable-from-outer-scope
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-12
Return return everywhere!https://github.com/lsaa2014/wtfpython#return-return-everywhere
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-13
When True is actually Falsehttps://github.com/lsaa2014/wtfpython#when-true-is-actually-false
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-14
Be careful with chained operationshttps://github.com/lsaa2014/wtfpython#be-careful-with-chained-operations
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-15
Name resolution ignoring class scopehttps://github.com/lsaa2014/wtfpython#name-resolution-ignoring-class-scope
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-8
From filled to None in one instruction...https://github.com/lsaa2014/wtfpython#from-filled-to-none-in-one-instruction
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-9
Explicit typecast of stringshttps://github.com/lsaa2014/wtfpython#explicit-typecast-of-strings
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-16
Class attributes and instance attributeshttps://github.com/lsaa2014/wtfpython#class-attributes-and-instance-attributes
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-17
Catching the Exceptions!https://github.com/lsaa2014/wtfpython#catching-the-exceptions
πŸ’‘ Explanationhttps://github.com/lsaa2014/wtfpython#-explanation-10
Midnight time doesn't exist?https://github.com/lsaa2014/wtfpython#midnight-time-doesnt-exist
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-18
What's wrong with booleans?https://github.com/lsaa2014/wtfpython#whats-wrong-with-booleans
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-19
Needle in a Haystackhttps://github.com/lsaa2014/wtfpython#needle-in-a-haystack
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-20
The surprising commahttps://github.com/lsaa2014/wtfpython#the-surprising-comma
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-21
For what?https://github.com/lsaa2014/wtfpython#for-what
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-22
not knot!https://github.com/lsaa2014/wtfpython#not-knot
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-23
Let's see if you can guess this?https://github.com/lsaa2014/wtfpython#lets-see-if-you-can-guess-this
πŸ’‘ Explanation:https://github.com/lsaa2014/wtfpython#-explanation-24
Minor Oneshttps://github.com/lsaa2014/wtfpython#minor-ones
TODO: Hell of an example!https://github.com/lsaa2014/wtfpython#todo-hell-of-an-example
Contributinghttps://github.com/lsaa2014/wtfpython#contributing
Acknowledgementshttps://github.com/lsaa2014/wtfpython#acknowledgements
Some nice Links!https://github.com/lsaa2014/wtfpython#some-nice-links
πŸŽ“ Licensehttps://github.com/lsaa2014/wtfpython#-license
https://github.com/lsaa2014/wtfpython#structure-of-the-examples
https://github.com/lsaa2014/wtfpython#some-fancy-title
https://github.com/lsaa2014/wtfpython#-explanation
https://github.com/lsaa2014/wtfpython#usage
herehttps://github.com/satwikkansal/wtfPython
https://github.com/lsaa2014/wtfpython#-examples
https://github.com/lsaa2014/wtfpython#skipping-lines
https://github.com/lsaa2014/wtfpython#-explanation-1
code pointhttps://en.wikipedia.org/wiki/Code_point
https://github.com/lsaa2014/wtfpython#well-something-is-fishy
mixed_tabs_and_spaces.pyhttps://github.com/lsaa2014/wtfpython/blob/master/mixed_tabs_and_spaces.py
https://github.com/lsaa2014/wtfpython#-explanation-2
https://github.com/lsaa2014/wtfpython#time-for-some-hash-brownies
https://github.com/lsaa2014/wtfpython#-explanation-3
answerhttps://stackoverflow.com/a/32211042/4354153
https://github.com/lsaa2014/wtfpython#evaluation-time-discrepancy
https://github.com/lsaa2014/wtfpython#-explanation-4
generatorhttps://wiki.python.org/moin/Generators
https://github.com/lsaa2014/wtfpython#modifying-a-dictionary-while-iterating-over-it
https://github.com/lsaa2014/wtfpython#-explanation-5
threadhttps://stackoverflow.com/questions/44763802/bug-in-python-dict
https://github.com/lsaa2014/wtfpython#deleting-a-list-item-while-iterating-over-it
https://github.com/lsaa2014/wtfpython#-explanation-6
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/lsaa2014/wtfpython#backslashes-at-the-end-of-string
https://github.com/lsaa2014/wtfpython#-explanation-7
https://github.com/lsaa2014/wtfpython#lets-make-a-giant-string
https://github.com/lsaa2014/wtfpython#-explanation-8
timeithttps://docs.python.org/3/library/timeit.html
https://github.com/lsaa2014/wtfpython#string-interning
https://github.com/lsaa2014/wtfpython#-explanation-9
herehttps://stackoverflow.com/questions/24245324/about-the-changing-id-of-an-immutable-string
https://github.com/lsaa2014/wtfpython#yes-it-exists
https://github.com/lsaa2014/wtfpython#-explanation-10
https://github.com/lsaa2014/wtfpython#is-is-not-what-it-is
https://github.com/lsaa2014/wtfpython#-explanation-11
https://docs.python.org/3/c-api/long.htmlhttps://docs.python.org/3/c-api/long.html
https://github.com/lsaa2014/wtfpython#is-not--is-not-is-not-
https://github.com/lsaa2014/wtfpython#-explanation-12
https://github.com/lsaa2014/wtfpython#the-function-inside-loop-sticks-to-the-same-output
https://github.com/lsaa2014/wtfpython#-explanation-13
https://github.com/lsaa2014/wtfpython#loop-variables-leaking-out-of-local-scope
https://github.com/lsaa2014/wtfpython#-explanation-14
What’s New In Python 3.0https://docs.python.org/3/whatsnew/3.0.html
https://github.com/lsaa2014/wtfpython#a-tic-tac-toe-where-x-wins-in-the-first-attempt
https://github.com/lsaa2014/wtfpython#-explanation-15
https://github.com/lsaa2014/wtfpython/blob/master/images/tic-tac-toe/after_row_initialized.png
https://github.com/lsaa2014/wtfpython/blob/master/images/tic-tac-toe/after_board_initialized.png
https://github.com/lsaa2014/wtfpython#beware-of-default-mutable-arguments
https://github.com/lsaa2014/wtfpython#-explanation-16
https://github.com/lsaa2014/wtfpython#same-operands-different-story
https://github.com/lsaa2014/wtfpython#-explanation-17
https://github.com/lsaa2014/wtfpython#mutating-the-immutable
https://github.com/lsaa2014/wtfpython#-explanation-18
https://docs.python.org/2/reference/datamodel.htmlhttps://docs.python.org/2/reference/datamodel.html
https://github.com/lsaa2014/wtfpython#using-a-variable-not-defined-in-scope
https://github.com/lsaa2014/wtfpython#-explanation-19
thishttp://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html
https://github.com/lsaa2014/wtfpython#the-disappearing-variable-from-outer-scope
https://github.com/lsaa2014/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/lsaa2014/wtfpython#return-return-everywhere
https://github.com/lsaa2014/wtfpython#-explanation-21
https://github.com/lsaa2014/wtfpython#when-true-is-actually-false
https://github.com/lsaa2014/wtfpython#-explanation-22
https://github.com/lsaa2014/wtfpython#be-careful-with-chained-operations
https://github.com/lsaa2014/wtfpython#-explanation-23
https://docs.python.org/2/reference/expressions.html#not-inhttps://docs.python.org/2/reference/expressions.html#not-in
https://github.com/lsaa2014/wtfpython#name-resolution-ignoring-class-scope
https://github.com/lsaa2014/wtfpython#-explanation-24
https://github.com/lsaa2014/wtfpython#from-filled-to-none-in-one-instruction
https://github.com/lsaa2014/wtfpython#-explanation-25
herehttp://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list
https://github.com/lsaa2014/wtfpython#explicit-typecast-of-strings
https://github.com/lsaa2014/wtfpython#-explanation-26
https://github.com/lsaa2014/wtfpython#class-attributes-and-instance-attributes
https://github.com/lsaa2014/wtfpython#-explanation-27
https://github.com/lsaa2014/wtfpython#catching-the-exceptions
https://github.com/lsaa2014/wtfpython#-explanation-28
https://github.com/lsaa2014/wtfpython#midnight-time-doesnt-exist
https://github.com/lsaa2014/wtfpython#-explanation-29
https://github.com/lsaa2014/wtfpython#whats-wrong-with-booleans
https://github.com/lsaa2014/wtfpython#-explanation-30
answerhttps://stackoverflow.com/a/8169049/4354153
https://github.com/lsaa2014/wtfpython#needle-in-a-haystack
https://github.com/lsaa2014/wtfpython#-explanation-31
https://github.com/lsaa2014/wtfpython#the-surprising-comma
thishttps://github.com/satwikkansal/wtfPython/issues/1
https://github.com/lsaa2014/wtfpython#-explanation-32
fixed in Python 3.6https://bugs.python.org/issue9232
thishttps://bugs.python.org/issue9232#msg248399
https://github.com/lsaa2014/wtfpython#for-what
thishttps://github.com/satwikkansal/wtfpython/issues/23
https://github.com/lsaa2014/wtfpython#-explanation-33
Python grammarhttps://docs.python.org/3/reference/grammar.html
thishttps://github.com/satwikkansal/wtfPython/issues/11
https://github.com/lsaa2014/wtfpython#not-knot
thishttps://github.com/satwikkansal/wtfPython/issues/1
https://github.com/lsaa2014/wtfpython#-explanation-34
https://github.com/lsaa2014/wtfpython#lets-see-if-you-can-guess-this
thishttps://github.com/satwikkansal/wtfPython/issues/9
https://github.com/lsaa2014/wtfpython#-explanation-35
Python language referencehttps://docs.python.org/2/reference/simple_stmts.html#assignment-statements
https://github.com/lsaa2014/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
https://github.com/lsaa2014/wtfpython#todo-hell-of-an-example
https://github.com/lsaa2014/wtfpython#contributing
issuehttps://github.com/satwikkansal/wtfPython
CONTRIBUTING.mdhttps://github.com/lsaa2014/wtfpython/blob/master/CONTRIBUTING.md
https://github.com/lsaa2014/wtfpython#acknowledgements
wtfjshttps://github.com/denysdovhan/wtfjs
https://github.com/lsaa2014/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://github.com/lsaa2014/wtfpython#-license
http://www.wtfpl.net
Satwik Kansalhttps://satwikkansal.xyz
bit.ly/wtfpythonhttps://bit.ly/wtfpython
Readme https://github.com/lsaa2014/wtfpython#readme-ov-file
WTFPL license https://github.com/lsaa2014/wtfpython#WTFPL-1-ov-file
Contributing https://github.com/lsaa2014/wtfpython#contributing-ov-file
Please reload this pagehttps://github.com/lsaa2014/wtfpython
Activityhttps://github.com/lsaa2014/wtfpython/activity
0 starshttps://github.com/lsaa2014/wtfpython/stargazers
1 watchinghttps://github.com/lsaa2014/wtfpython/watchers
0 forkshttps://github.com/lsaa2014/wtfpython/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Flsaa2014%2Fwtfpython&report=lsaa2014+%28user%29
Releaseshttps://github.com/lsaa2014/wtfpython/releases
Packages 0https://github.com/users/lsaa2014/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.