RenΓ©'s URL Explorer Experiment


Title: GitHub - akashfoss/wtfPython: A collection of subtle and tricky Python examples

Open Graph Title: GitHub - akashfoss/wtfPython: A collection of subtle and tricky Python examples

X Title: GitHub - akashfoss/wtfPython: A collection of subtle and tricky Python examples

Description: A collection of subtle and tricky Python examples. Contribute to akashfoss/wtfPython development by creating an account on GitHub.

Open Graph Description: A collection of subtle and tricky Python examples. Contribute to akashfoss/wtfPython development by creating an account on GitHub.

X Description: A collection of subtle and tricky Python examples. Contribute to akashfoss/wtfPython development by creating an account on GitHub.

Opengraph URL: https://github.com/akashfoss/wtfPython

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:2cbce516-0bdb-a319-c28e-9d23764745fb
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idC412:18466E:D2BFFB:12660BB:6970C130
html-safe-noncec5b984dad4e4cc3bd2c1518d488d1f43f77a35f94edb8a7324e1991873a19041
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDEyOjE4NDY2RTpEMkJGRkI6MTI2NjBCQjo2OTcwQzEzMCIsInZpc2l0b3JfaWQiOiIyMjUyMjYxMzQ0MDQ5OTM4NzM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac804039587e73a21d7f2cede24a29e73398d3bb43c5e7c3eb9dc754eab2892219
hovercard-subject-tagrepository:102136857
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/akashfoss/wtfPython
twitter:imagehttps://opengraph.githubassets.com/eb466709c18c813e748b99612bd6dff5535440438bc4a8b98bc02d9ad289ddef/akashfoss/wtfPython
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb466709c18c813e748b99612bd6dff5535440438bc4a8b98bc02d9ad289ddef/akashfoss/wtfPython
og:image:altA collection of subtle and tricky Python examples. Contribute to akashfoss/wtfPython development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonebb43a7bc61aba1b91c3c5cf8e7d00342e1e77a0cfe55a141222dbd7f9782d26f
turbo-cache-controlno-preview
go-importgithub.com/akashfoss/wtfPython git https://github.com/akashfoss/wtfPython.git
octolytics-dimension-user_id17335430
octolytics-dimension-user_loginakashfoss
octolytics-dimension-repository_id102136857
octolytics-dimension-repository_nwoakashfoss/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
release34817b01ad7cdf8b2beb35ea7b0e2a7609004eff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

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