1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-25 20:44:24 +01:00

Fix broken links

This commit is contained in:
Satwik 2019-11-03 00:54:04 +05:30
parent 2161c48e8e
commit 2cd7e3fccd

125
README.md vendored
View File

@ -1,7 +1,6 @@
<p align="center"><img src="images/logo.png" alt=""></p> <p align="center"><img src="images/logo.png" alt=""></p>
<h1 align="center">What the f*ck Python! 🐍</h1> <h1 align="center">What the f*ck Python! 🐍</h1>
<p align="center">An interesting collection of surprising snippets and lesser-known Python features.</p> <p align="center">An interesting collection of surprising snippets and lesser-known Python features.</p>
[![WTFPL 2.0][license-image]][license-url]
Translations: [Chinese 中文](https://github.com/leisurelicht/wtfpython-cn) Translations: [Chinese 中文](https://github.com/leisurelicht/wtfpython-cn)
@ -23,75 +22,75 @@ So, here we go...
<!-- toc --> <!-- toc -->
- [Structure of the Examples](#structure-of-the-examples) - [Structure of the Examples](#structure-of-the-examples)
+ [ Some fancy Title](#%E2%96%B6-some-fancy-title) + [ Some fancy Title](#-some-fancy-title)
- [Usage](#usage) - [Usage](#usage)
- [👀 Examples](#%F0%9F%91%80-examples) - [👀 Examples](#%F0%9F%91%80-examples)
* [Section: Strain your brain!](#section-strain-your-brain) * [Section: Strain your brain!](#section-strain-your-brain)
+ [ First things first!](#%E2%96%B6-first-things-first) + [ First things first!](#-first-things-first)
+ [ Strings can be tricky sometimes](#%E2%96%B6-strings-can-be-tricky-sometimes) + [ Strings can be tricky sometimes](#-strings-can-be-tricky-sometimes)
+ [ Splitsies](#%E2%96%B6-splitsies) + [ Splitsies](#-splitsies)
+ [ Hash brownies](#%E2%96%B6-hash-brownies) + [ Hash brownies](#-hash-brownies)
+ [ Disorder within order](#%E2%96%B6-disorder-within-order) + [ Disorder within order](#-disorder-within-order)
+ [ Keep trying...](#%E2%96%B6-keep-trying) + [ Keep trying...](#-keep-trying)
+ [ Deep down, we're all the same.](#%E2%96%B6-deep-down-were-all-the-same) + [ Deep down, we're all the same.](#-deep-down-were-all-the-same)
+ [ For what?](#%E2%96%B6-for-what) + [ For what?](#-for-what)
+ [ Evaluation time discrepancy](#%E2%96%B6-evaluation-time-discrepancy) + [ Evaluation time discrepancy](#-evaluation-time-discrepancy)
+ [ How not to use `is` operator](#%E2%96%B6-how-not-to-use-is-operator) + [ How not to use `is` operator](#-how-not-to-use-is-operator)
+ [ A tic-tac-toe where X wins in the first attempt!](#%E2%96%B6-a-tic-tac-toe-where-x-wins-in-the-first-attempt) + [ A tic-tac-toe where X wins in the first attempt!](#-a-tic-tac-toe-where-x-wins-in-the-first-attempt)
+ [ The sticky output function](#%E2%96%B6-the-sticky-output-function) + [ The sticky output function](#-the-sticky-output-function)
+ [ The chicken-egg problem](#%E2%96%B6-the-chicken-egg-problem) + [ The chicken-egg problem](#-the-chicken-egg-problem)
+ [ `is not ...` is not `is (not ...)`](#%E2%96%B6-is-not--is-not-is-not-) + [ `is not ...` is not `is (not ...)`](#-is-not--is-not-is-not-)
+ [ The surprising comma](#%E2%96%B6-the-surprising-comma) + [ The surprising comma](#-the-surprising-comma)
+ [ Strings and the backslashes](#%E2%96%B6-strings-and-the-backslashes) + [ Strings and the backslashes](#-strings-and-the-backslashes)
+ [ not knot!](#%E2%96%B6-not-knot) + [ not knot!](#-not-knot)
+ [ Half triple-quoted strings](#%E2%96%B6-half-triple-quoted-strings) + [ Half triple-quoted strings](#-half-triple-quoted-strings)
+ [ Midnight time doesn't exist?](#%E2%96%B6-midnight-time-doesnt-exist) + [ Midnight time doesn't exist?](#-midnight-time-doesnt-exist)
+ [ What's wrong with booleans?](#%E2%96%B6-whats-wrong-with-booleans) + [ What's wrong with booleans?](#-whats-wrong-with-booleans)
+ [ Class attributes and instance attributes](#%E2%96%B6-class-attributes-and-instance-attributes) + [ Class attributes and instance attributes](#-class-attributes-and-instance-attributes)
+ [ Non-reflexive class method](#%E2%96%B6-non-reflexive-class-method) + [ Non-reflexive class method](#-non-reflexive-class-method)
+ [ yielding None](#%E2%96%B6-yielding-none) + [ yielding None](#-yielding-none)
+ [ Nan-reflexivity](#%E2%96%B6-nan-reflexivity) + [ Nan-reflexivity](#-nan-reflexivity)
+ [ Mutating the immutable!](#%E2%96%B6-mutating-the-immutable) + [ Mutating the immutable!](#-mutating-the-immutable)
+ [ The disappearing variable from outer scope](#%E2%96%B6-the-disappearing-variable-from-outer-scope) + [ The disappearing variable from outer scope](#-the-disappearing-variable-from-outer-scope)
+ [ Yielding from... return!](#%E2%96%B6-yielding-from-return) + [ Yielding from... return!](#-yielding-from-return)
+ [ Lossy zip of iterators](#%E2%96%B6-lossy-zip-of-iterators) + [ Lossy zip of iterators](#-lossy-zip-of-iterators)
+ [ Subclass relationships](#%E2%96%B6-subclass-relationships) + [ Subclass relationships](#-subclass-relationships)
+ [ The mysterious key type conversion](#%E2%96%B6-the-mysterious-key-type-conversion) + [ The mysterious key type conversion](#-the-mysterious-key-type-conversion)
+ [ Let's see if you can guess this?](#%E2%96%B6-lets-see-if-you-can-guess-this) + [ Let's see if you can guess this?](#-lets-see-if-you-can-guess-this)
* [Section: Appearances are deceptive!](#section-appearances-are-deceptive) * [Section: Appearances are deceptive!](#section-appearances-are-deceptive)
+ [ Skipping lines?](#%E2%96%B6-skipping-lines) + [ Skipping lines?](#-skipping-lines)
+ [ Teleportation](#%E2%96%B6-teleportation) + [ Teleportation](#-teleportation)
+ [ Well, something is fishy...](#%E2%96%B6-well-something-is-fishy) + [ Well, something is fishy...](#-well-something-is-fishy)
* [Section: Slippery Slopes](#section-slippery-slopes) * [Section: Slippery Slopes](#section-slippery-slopes)
+ [ Modifying a dictionary while iterating over it](#%E2%96%B6-modifying-a-dictionary-while-iterating-over-it) + [ Modifying a dictionary while iterating over it](#-modifying-a-dictionary-while-iterating-over-it)
+ [ Stubborn `del` operation](#%E2%96%B6-stubborn-del-operation) + [ Stubborn `del` operation](#-stubborn-del-operation)
+ [ Deleting a list item while iterating](#%E2%96%B6-deleting-a-list-item-while-iterating) + [ Deleting a list item while iterating](#-deleting-a-list-item-while-iterating)
+ [ Loop variables leaking out!](#%E2%96%B6-loop-variables-leaking-out) + [ Loop variables leaking out!](#-loop-variables-leaking-out)
+ [ Beware of default mutable arguments!](#%E2%96%B6-beware-of-default-mutable-arguments) + [ Beware of default mutable arguments!](#-beware-of-default-mutable-arguments)
+ [ Catching the Exceptions](#%E2%96%B6-catching-the-exceptions) + [ Catching the Exceptions](#-catching-the-exceptions)
+ [ Same operands, different story!](#%E2%96%B6-same-operands-different-story) + [ Same operands, different story!](#-same-operands-different-story)
+ [ The out of scope variable](#%E2%96%B6-the-out-of-scope-variable) + [ The out of scope variable](#-the-out-of-scope-variable)
+ [ Be careful with chained operations](#%E2%96%B6-be-careful-with-chained-operations) + [ Be careful with chained operations](#-be-careful-with-chained-operations)
+ [ Name resolution ignoring class scope](#%E2%96%B6-name-resolution-ignoring-class-scope) + [ Name resolution ignoring class scope](#-name-resolution-ignoring-class-scope)
+ [ Needles in a Haystack](#%E2%96%B6-needles-in-a-haystack) + [ Needles in a Haystack](#-needles-in-a-haystack)
+ [ Wild imports](#%E2%96%B6-wild-imports) + [ Wild imports](#-wild-imports)
* [Section: Read the docs](#section-read-the-docs) * [Section: Read the docs](#section-read-the-docs)
+ [ All sorted?](#%E2%96%B6-all-sorted) + [ All sorted?](#-all-sorted)
+ [ All-true-ation](#%E2%96%B6-all-true-ation) + [ All-true-ation](#-all-true-ation)
* [Section: The Hidden treasures!](#section-the-hidden-treasures) * [Section: The Hidden treasures!](#section-the-hidden-treasures)
+ [ Okay Python, Can you make me fly?](#%E2%96%B6-okay-python-can-you-make-me-fly) + [ Okay Python, Can you make me fly?](#-okay-python-can-you-make-me-fly)
+ [ `goto`, but why?](#%E2%96%B6-goto-but-why) + [ `goto`, but why?](#-goto-but-why)
+ [ Brace yourself!](#%E2%96%B6-brace-yourself) + [ Brace yourself!](#-brace-yourself)
+ [ Let's meet Friendly Language Uncle For Life](#%E2%96%B6-lets-meet-friendly-language-uncle-for-life) + [ Let's meet Friendly Language Uncle For Life](#-lets-meet-friendly-language-uncle-for-life)
+ [ Even Python understands that love is complicated](#%E2%96%B6-even-python-understands-that-love-is-complicated) + [ Even Python understands that love is complicated](#-even-python-understands-that-love-is-complicated)
+ [ Yes, it exists!](#%E2%96%B6-yes-it-exists) + [ Yes, it exists!](#-yes-it-exists)
+ [ Ellipsis](#%E2%96%B6-ellipsis) + [ Ellipsis](#-ellipsis)
+ [ Inpinity](#%E2%96%B6-inpinity) + [ Inpinity](#-inpinity)
+ [ Let's mangle](#%E2%96%B6-lets-mangle) + [ Let's mangle](#-lets-mangle)
* [Section: Miscellaneous](#section-miscellaneous) * [Section: Miscellaneous](#section-miscellaneous)
+ [ `+=` is faster](#%E2%96%B6--is-faster) + [ `+=` is faster](#--is-faster)
+ [ Let's make a giant string!](#%E2%96%B6-lets-make-a-giant-string) + [ Let's make a giant string!](#-lets-make-a-giant-string)
+ [ Minor Ones](#%E2%96%B6-minor-ones) + [ Minor Ones](#-minor-ones)
* [~~~ That's all folks! ~~~](#-thats-all-folks-) * [~~~ That's all folks! ~~~](#-thats-all-folks-)
- [Contributing](#contributing) - [Contributing](#contributing)
- [Acknowledgements](#acknowledgements) - [Acknowledgements](#acknowledgements)
@ -3479,7 +3478,7 @@ The idea and design for this collection were initially inspired by Denys Dovhan'
# 🎓 License # 🎓 License
[![CC 4.0][license-image]][license-url] [![WTFPL 2.0][license-image]][license-url]
&copy; [Satwik Kansal](https://satwikkansal.xyz) &copy; [Satwik Kansal](https://satwikkansal.xyz)