| react-profiling | 0 |
| react-import-map | react,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-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:42b06204-2ed2-cdbc-1ae8-9134be3e869c |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 87CC:177D5B:234DF75:2DE1C08:6AFFEB5A |
| html-safe-nonce | 1c761b5f689c43f3fefc962bcbfd739578832caa86be7620e2ec8575c4fd88f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0NDOjE3N0Q1QjoyMzRERjc1OjJERTFDMDg6NkFGRkVCNUEiLCJ2aXNpdG9yX2lkIjoiMjAwNzAzNTQ0MzY0MzYyNTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 951c1d0e2961bea591d4bdd618f8bc21c0887ba8b17b6ac18b569769bdf65fdb |
| hovercard-subject-tag | repository:102268229 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | // |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/mcroley/wtfpython |
| twitter:image | https://opengraph.githubassets.com/37de0197d17e7f6dfa3b448c29d84dc743b94bc313a2f736766013e6cccd54b2/mcroley/wtfpython |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37de0197d17e7f6dfa3b448c29d84dc743b94bc313a2f736766013e6cccd54b2/mcroley/wtfpython |
| og:image:alt | A collection of interesting, subtle, and tricky Python snippets. - mcroley/wtfpython |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-cache |
| go-import | github.com/mcroley/wtfpython git https://github.com/mcroley/wtfpython.git |
| octolytics-dimension-user_id | 8241098 |
| octolytics-dimension-user_login | mcroley |
| octolytics-dimension-repository_id | 102268229 |
| octolytics-dimension-repository_nwo | mcroley/wtfpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 101684374 |
| octolytics-dimension-repository_parent_nwo | satwikkansal/wtfpython |
| octolytics-dimension-repository_network_root_id | 101684374 |
| octolytics-dimension-repository_network_root_nwo | satwikkansal/wtfpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/mcroley/wtfpython#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmcroley%2Fwtfpython |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmcroley%2Fwtfpython |
| Sign up | https://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=mcroley%2Fwtfpython |
| Reload | https://redirect.github.com/mcroley/wtfpython |
| Reload | https://redirect.github.com/mcroley/wtfpython |
| Reload | https://redirect.github.com/mcroley/wtfpython |
| mcroley | https://redirect.github.com/mcroley |
| wtfpython | https://redirect.github.com/mcroley/wtfpython |
| Code | https://redirect.github.com/mcroley/wtfpython |
| Pull requests | https://redirect.github.com/mcroley/wtfpython/pulls |
| Actions | https://redirect.github.com/mcroley/wtfpython/actions |
| Projects | https://redirect.github.com/mcroley/wtfpython/projects |
| Wiki | https://redirect.github.com/mcroley/wtfpython/wiki |
| Security and quality | https://redirect.github.com/mcroley/wtfpython/security |
| Insights | https://redirect.github.com/mcroley/wtfpython/pulse |
| https://redirect.github.com/mcroley/wtfpython |
| wtfpython | https://redirect.github.com/mcroley/wtfpython |
| satwikkansal/wtfpython | https://redirect.github.com/satwikkansal/wtfpython |
| Notifications | https://redirect.github.com/login?return_to=%2Fmcroley%2Fwtfpython |
| Fork0 (0) | https://redirect.github.com/login?return_to=%2Fmcroley%2Fwtfpython |
| Star0 (0) | https://redirect.github.com/login?return_to=%2Fmcroley%2Fwtfpython |
| bit.ly/wtfpython | https://bit.ly/wtfpython |
| Readme | https://redirect.github.com/mcroley/wtfpython#readme-ov-file |
| WTFPL license | https://redirect.github.com/mcroley/wtfpython#WTFPL-1-ov-file |
| Contributing | https://redirect.github.com/mcroley/wtfpython#contributing-ov-file |
| Activity | https://redirect.github.com/mcroley/wtfpython/activity |
| 0 forks | https://redirect.github.com/mcroley/wtfpython/forks |
| Report repository | https://redirect.github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fmcroley%2Fwtfpython&report=mcroley+%28user%29 |
| Branches | https://redirect.github.com/mcroley/wtfpython/branches |
| Tags | https://redirect.github.com/mcroley/wtfpython/tags |
| https://redirect.github.com/mcroley/wtfpython/branches |
| https://redirect.github.com/mcroley/wtfpython/tags |
| 88 Commits | https://redirect.github.com/mcroley/wtfpython/commits/master/ |
| https://redirect.github.com/mcroley/wtfpython/commits/master/ |
| images/tic-tac-toe | https://redirect.github.com/mcroley/wtfpython/tree/master/images/tic-tac-toe |
| images/tic-tac-toe | https://redirect.github.com/mcroley/wtfpython/tree/master/images/tic-tac-toe |
| .gitattributes | https://redirect.github.com/mcroley/wtfpython/blob/master/.gitattributes |
| .gitattributes | https://redirect.github.com/mcroley/wtfpython/blob/master/.gitattributes |
| .gitignore | https://redirect.github.com/mcroley/wtfpython/blob/master/.gitignore |
| .gitignore | https://redirect.github.com/mcroley/wtfpython/blob/master/.gitignore |
| .npmignore | https://redirect.github.com/mcroley/wtfpython/blob/master/.npmignore |
| .npmignore | https://redirect.github.com/mcroley/wtfpython/blob/master/.npmignore |
| CONTRIBUTING.md | https://redirect.github.com/mcroley/wtfpython/blob/master/CONTRIBUTING.md |
| CONTRIBUTING.md | https://redirect.github.com/mcroley/wtfpython/blob/master/CONTRIBUTING.md |
| LICENSE | https://redirect.github.com/mcroley/wtfpython/blob/master/LICENSE |
| LICENSE | https://redirect.github.com/mcroley/wtfpython/blob/master/LICENSE |
| README.md | https://redirect.github.com/mcroley/wtfpython/blob/master/README.md |
| README.md | https://redirect.github.com/mcroley/wtfpython/blob/master/README.md |
| mixed_tabs_and_spaces.py | https://redirect.github.com/mcroley/wtfpython/blob/master/mixed_tabs_and_spaces.py |
| mixed_tabs_and_spaces.py | https://redirect.github.com/mcroley/wtfpython/blob/master/mixed_tabs_and_spaces.py |
| package.json | https://redirect.github.com/mcroley/wtfpython/blob/master/package.json |
| package.json | https://redirect.github.com/mcroley/wtfpython/blob/master/package.json |
| wtfpython | https://redirect.github.com/mcroley/wtfpython/blob/master/wtfpython |
| wtfpython | https://redirect.github.com/mcroley/wtfpython/blob/master/wtfpython |
| README | https://redirect.github.com/mcroley/wtfpython |
| Contributing | https://redirect.github.com/mcroley/wtfpython |
| WTFPL license | https://redirect.github.com/mcroley/wtfpython |
| https://redirect.github.com/mcroley/wtfpython#-what-the-fck-python-- |
| http://www.wtfpl.net |
| https://redirect.github.com/mcroley/wtfpython#table-of-contents |
| Structure of the Examples | https://redirect.github.com/mcroley/wtfpython#structure-of-the-examples |
| Some fancy Title | https://redirect.github.com/mcroley/wtfpython#some-fancy-title |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation |
| Usage | https://redirect.github.com/mcroley/wtfpython#usage |
| 👀 Examples | https://redirect.github.com/mcroley/wtfpython#-examples |
| Skipping lines? | https://redirect.github.com/mcroley/wtfpython#skipping-lines |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation |
| Well, something is fishy... | https://redirect.github.com/mcroley/wtfpython#well-something-is-fishy |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-1 |
| Time for some hash brownies! | https://redirect.github.com/mcroley/wtfpython#time-for-some-hash-brownies |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-2 |
| Evaluation time discrepancy | https://redirect.github.com/mcroley/wtfpython#evaluation-time-discrepancy |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-3 |
| Modifying a dictionary while iterating over it | https://redirect.github.com/mcroley/wtfpython#modifying-a-dictionary-while-iterating-over-it |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-1 |
| Deleting a list item while iterating over it | https://redirect.github.com/mcroley/wtfpython#deleting-a-list-item-while-iterating-over-it |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-2 |
| Backslashes at the end of string | https://redirect.github.com/mcroley/wtfpython#backslashes-at-the-end-of-string |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-4 |
| Let's make a giant string! | https://redirect.github.com/mcroley/wtfpython#lets-make-a-giant-string |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-5 |
| String concatenation interpreter optimizations. | https://redirect.github.com/mcroley/wtfpython#string-concatenation-interpreter-optimizations |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-3 |
| Yes, it exists! | https://redirect.github.com/mcroley/wtfpython#yes-it-exists |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-4 |
| is is not what it is! | https://redirect.github.com/mcroley/wtfpython#is-is-not-what-it-is |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-5 |
| is not ... is different from is (not ...) | https://redirect.github.com/mcroley/wtfpython#is-not--is-different-from-is-not- |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-6 |
| The function inside loop sticks to the same output | https://redirect.github.com/mcroley/wtfpython#the-function-inside-loop-sticks-to-the-same-output |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-7 |
| Loop variables leaking out of local scope! | https://redirect.github.com/mcroley/wtfpython#loop-variables-leaking-out-of-local-scope |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-6 |
| A tic-tac-toe where X wins in the first attempt! | https://redirect.github.com/mcroley/wtfpython#a-tic-tac-toe-where-x-wins-in-the-first-attempt |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-7 |
| Beware of default mutable arguments! | https://redirect.github.com/mcroley/wtfpython#beware-of-default-mutable-arguments |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-8 |
| Same operands, different story! | https://redirect.github.com/mcroley/wtfpython#same-operands-different-story |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-9 |
| Mutating the immutable! | https://redirect.github.com/mcroley/wtfpython#mutating-the-immutable |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-10 |
| Using a variable not defined in scope | https://redirect.github.com/mcroley/wtfpython#using-a-variable-not-defined-in-scope |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-11 |
| The disappearing variable from outer scope | https://redirect.github.com/mcroley/wtfpython#the-disappearing-variable-from-outer-scope |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-12 |
| Return return everywhere! | https://redirect.github.com/mcroley/wtfpython#return-return-everywhere |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-13 |
| When True is actually False | https://redirect.github.com/mcroley/wtfpython#when-true-is-actually-false |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-14 |
| Be careful with chained operations | https://redirect.github.com/mcroley/wtfpython#be-careful-with-chained-operations |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-15 |
| Name resolution ignoring class scope | https://redirect.github.com/mcroley/wtfpython#name-resolution-ignoring-class-scope |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-8 |
| From filled to None in one instruction... | https://redirect.github.com/mcroley/wtfpython#from-filled-to-none-in-one-instruction |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-9 |
| Explicit typecast of strings | https://redirect.github.com/mcroley/wtfpython#explicit-typecast-of-strings |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-16 |
| Class attributes and instance attributes | https://redirect.github.com/mcroley/wtfpython#class-attributes-and-instance-attributes |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-17 |
| Catching the Exceptions! | https://redirect.github.com/mcroley/wtfpython#catching-the-exceptions |
| 💡 Explanation | https://redirect.github.com/mcroley/wtfpython#-explanation-10 |
| Midnight time doesn't exist? | https://redirect.github.com/mcroley/wtfpython#midnight-time-doesnt-exist |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-18 |
| Counting the booleans | https://redirect.github.com/mcroley/wtfpython#counting-the-booleans |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-19 |
| Needle in a Haystack | https://redirect.github.com/mcroley/wtfpython#needle-in-a-haystack |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-20 |
| Loop variable resilient to changes | https://redirect.github.com/mcroley/wtfpython#loop-variable-resilient-to-changes |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-21 |
| Let's see if you can guess this? | https://redirect.github.com/mcroley/wtfpython#lets-see-if-you-can-guess-this |
| 💡 Explanation: | https://redirect.github.com/mcroley/wtfpython#-explanation-22 |
| Minor Ones | https://redirect.github.com/mcroley/wtfpython#minor-ones |
| TODO: Hell of an example! | https://redirect.github.com/mcroley/wtfpython#todo-hell-of-an-example |
| Contributing | https://redirect.github.com/mcroley/wtfpython#contributing |
| Acknowledgements | https://redirect.github.com/mcroley/wtfpython#acknowledgements |
| Some nice Links! | https://redirect.github.com/mcroley/wtfpython#some-nice-links |
| 🎓 License | https://redirect.github.com/mcroley/wtfpython#-license |
| https://redirect.github.com/mcroley/wtfpython#structure-of-the-examples |
| https://redirect.github.com/mcroley/wtfpython#some-fancy-title |
| https://redirect.github.com/mcroley/wtfpython#-explanation |
| https://redirect.github.com/mcroley/wtfpython#usage |
| here | https://github.com/satwikkansal/wtfPython |
| https://redirect.github.com/mcroley/wtfpython#-examples |
| https://redirect.github.com/mcroley/wtfpython#skipping-lines |
| https://redirect.github.com/mcroley/wtfpython#-explanation-1 |
| https://redirect.github.com/mcroley/wtfpython#well-something-is-fishy |
| mixed_tabs_and_spaces.py | https://redirect.github.com/mcroley/wtfpython/blob/master/mixed_tabs_and_spaces.py |
| https://redirect.github.com/mcroley/wtfpython#-explanation-2 |
| https://redirect.github.com/mcroley/wtfpython#time-for-some-hash-brownies |
| https://redirect.github.com/mcroley/wtfpython#-explanation-3 |
| answer | https://stackoverflow.com/a/32211042/4354153 |
| https://redirect.github.com/mcroley/wtfpython#evaluation-time-discrepancy |
| https://redirect.github.com/mcroley/wtfpython#-explanation-4 |
| generator | https://wiki.python.org/moin/Generators |
| https://redirect.github.com/mcroley/wtfpython#modifying-a-dictionary-while-iterating-over-it |
| https://redirect.github.com/mcroley/wtfpython#-explanation-5 |
| thread | https://stackoverflow.com/questions/44763802/bug-in-python-dict |
| https://redirect.github.com/mcroley/wtfpython#deleting-a-list-item-while-iterating-over-it |
| https://redirect.github.com/mcroley/wtfpython#-explanation-6 |
| thread | https://stackoverflow.com/questions/45877614/how-to-change-all-the-dictionary-keys-in-a-for-loop-with-d-items |
| https://redirect.github.com/mcroley/wtfpython#backslashes-at-the-end-of-string |
| https://redirect.github.com/mcroley/wtfpython#-explanation-7 |
| https://redirect.github.com/mcroley/wtfpython#lets-make-a-giant-string |
| https://redirect.github.com/mcroley/wtfpython#-explanation-8 |
| timeit | https://docs.python.org/3/library/timeit.html |
| https://redirect.github.com/mcroley/wtfpython#string-concatenation-interpreter-optimizations |
| https://redirect.github.com/mcroley/wtfpython#-explanation-9 |
| here | https://stackoverflow.com/questions/24245324/about-the-changing-id-of-an-immutable-string |
| https://redirect.github.com/mcroley/wtfpython#yes-it-exists |
| https://redirect.github.com/mcroley/wtfpython#-explanation-10 |
| https://redirect.github.com/mcroley/wtfpython#is-is-not-what-it-is |
| https://redirect.github.com/mcroley/wtfpython#-explanation-11 |
| https://docs.python.org/3/c-api/long.html | https://docs.python.org/3/c-api/long.html |
| https://redirect.github.com/mcroley/wtfpython#is-not--is-different-from-is-not- |
| https://redirect.github.com/mcroley/wtfpython#-explanation-12 |
| https://redirect.github.com/mcroley/wtfpython#the-function-inside-loop-sticks-to-the-same-output |
| https://redirect.github.com/mcroley/wtfpython#-explanation-13 |
| https://redirect.github.com/mcroley/wtfpython#loop-variables-leaking-out-of-local-scope |
| https://redirect.github.com/mcroley/wtfpython#-explanation-14 |
| What’s New In Python 3.0 | https://docs.python.org/3/whatsnew/3.0.html |
| https://redirect.github.com/mcroley/wtfpython#a-tic-tac-toe-where-x-wins-in-the-first-attempt |
| https://redirect.github.com/mcroley/wtfpython#-explanation-15 |
| https://redirect.github.com/mcroley/wtfpython/blob/master/images/tic-tac-toe/after_row_initialized.png |
| https://redirect.github.com/mcroley/wtfpython/blob/master/images/tic-tac-toe/after_board_initialized.png |
| https://redirect.github.com/mcroley/wtfpython#beware-of-default-mutable-arguments |
| https://redirect.github.com/mcroley/wtfpython#-explanation-16 |
| https://redirect.github.com/mcroley/wtfpython#same-operands-different-story |
| https://redirect.github.com/mcroley/wtfpython#-explanation-17 |
| https://redirect.github.com/mcroley/wtfpython#mutating-the-immutable |
| https://redirect.github.com/mcroley/wtfpython#-explanation-18 |
| https://docs.python.org/2/reference/datamodel.html | https://docs.python.org/2/reference/datamodel.html |
| https://redirect.github.com/mcroley/wtfpython#using-a-variable-not-defined-in-scope |
| https://redirect.github.com/mcroley/wtfpython#-explanation-19 |
| this | http://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html |
| https://redirect.github.com/mcroley/wtfpython#the-disappearing-variable-from-outer-scope |
| https://redirect.github.com/mcroley/wtfpython#-explanation-20 |
| https://docs.python.org/3/reference/compound_stmts.html#except | https://docs.python.org/3/reference/compound_stmts.html#except |
| https://redirect.github.com/mcroley/wtfpython#return-return-everywhere |
| https://redirect.github.com/mcroley/wtfpython#-explanation-21 |
| https://redirect.github.com/mcroley/wtfpython#when-true-is-actually-false |
| https://redirect.github.com/mcroley/wtfpython#-explanation-22 |
| https://redirect.github.com/mcroley/wtfpython#be-careful-with-chained-operations |
| https://redirect.github.com/mcroley/wtfpython#-explanation-23 |
| https://docs.python.org/2/reference/expressions.html#not-in | https://docs.python.org/2/reference/expressions.html#not-in |
| https://redirect.github.com/mcroley/wtfpython#name-resolution-ignoring-class-scope |
| https://redirect.github.com/mcroley/wtfpython#-explanation-24 |
| https://redirect.github.com/mcroley/wtfpython#from-filled-to-none-in-one-instruction |
| https://redirect.github.com/mcroley/wtfpython#-explanation-25 |
| here | http://docs.python.org/2/faq/design.html#why-doesn-t-list-sort-return-the-sorted-list |
| https://redirect.github.com/mcroley/wtfpython#explicit-typecast-of-strings |
| https://redirect.github.com/mcroley/wtfpython#-explanation-26 |
| https://redirect.github.com/mcroley/wtfpython#class-attributes-and-instance-attributes |
| https://redirect.github.com/mcroley/wtfpython#-explanation-27 |
| https://redirect.github.com/mcroley/wtfpython#catching-the-exceptions |
| https://redirect.github.com/mcroley/wtfpython#-explanation-28 |
| https://redirect.github.com/mcroley/wtfpython#midnight-time-doesnt-exist |
| https://redirect.github.com/mcroley/wtfpython#-explanation-29 |
| https://redirect.github.com/mcroley/wtfpython#counting-the-booleans |
| https://redirect.github.com/mcroley/wtfpython#-explanation-30 |
| answer | https://stackoverflow.com/a/8169049/4354153 |
| https://redirect.github.com/mcroley/wtfpython#needle-in-a-haystack |
| https://redirect.github.com/mcroley/wtfpython#-explanation-31 |
| https://redirect.github.com/mcroley/wtfpython#loop-variable-resilient-to-changes |
| this | https://github.com/satwikkansal/wtfPython/issues/11 |
| https://redirect.github.com/mcroley/wtfpython#-explanation-32 |
| Source | https://docs.python.org/3/reference/compound_stmts.html#the-for-statement |
| https://redirect.github.com/mcroley/wtfpython#lets-see-if-you-can-guess-this |
| this | https://github.com/satwikkansal/wtfPython/issues/9 |
| https://redirect.github.com/mcroley/wtfpython#-explanation-33 |
| Python language reference | https://docs.python.org/2/reference/simple_stmts.html#assignment-statements |
| https://redirect.github.com/mcroley/wtfpython#minor-ones |
| multiprocessing | https://docs.python.org/2/library/multiprocessing.html |
| https://redirect.github.com/mcroley/wtfpython#todo-hell-of-an-example |
| https://redirect.github.com/mcroley/wtfpython#contributing |
| issue | https://github.com/satwikkansal/wtfPython |
| CONTRIBUTING.md | https://redirect.github.com/mcroley/wtfpython/blob/master/CONTRIBUTING.md |
| https://redirect.github.com/mcroley/wtfpython#acknowledgements |
| wtfjs | https://github.com/denysdovhan/wtfjs |
| https://redirect.github.com/mcroley/wtfpython#some-nice-links |
| https://www.youtube.com/watch?v=sH4XF6pKKmk | https://www.youtube.com/watch?v=sH4XF6pKKmk |
| https://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_python | https://www.reddit.com/r/Python/comments/3cu6ej/what_are_some_wtf_things_about_python |
| https://sopython.com/wiki/Common_Gotchas_In_Python | https://sopython.com/wiki/Common_Gotchas_In_Python |
| https://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmines | https://stackoverflow.com/questions/530530/python-2-x-gotchas-and-landmines |
| https://stackoverflow.com/questions/1011431/common-pitfalls-in-python | https://stackoverflow.com/questions/1011431/common-pitfalls-in-python |
| https://redirect.github.com/mcroley/wtfpython#-license |
| http://www.wtfpl.net |
| Satwik Kansal | https://satwikkansal.xyz |
| bit.ly/wtfpython | https://bit.ly/wtfpython |
| Readme | https://redirect.github.com/mcroley/wtfpython#readme-ov-file |
| WTFPL license | https://redirect.github.com/mcroley/wtfpython#WTFPL-1-ov-file |
| Contributing | https://redirect.github.com/mcroley/wtfpython#contributing-ov-file |
| Activity | https://redirect.github.com/mcroley/wtfpython/activity |
| 0 forks | https://redirect.github.com/mcroley/wtfpython/forks |
| Report repository | https://redirect.github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fmcroley%2Fwtfpython&report=mcroley+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |