mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-22 11:04:25 +01:00
Update TOC
This commit is contained in:
parent
edeb98f406
commit
162458c88e
168
README.md
vendored
168
README.md
vendored
@ -28,67 +28,131 @@ So, here we go...
|
||||
- [Usage](#usage)
|
||||
- [👀 Examples](#-examples)
|
||||
- [Section: Strain your brain!](#section-strain-your-brain)
|
||||
- [▶ Strings can be tricky sometimes *](#-strings-can-be-tricky-sometimes-)
|
||||
- [▶ Time for some hash brownies!](#-time-for-some-hash-brownies)
|
||||
- [▶ Return return everywhere!](#-return-return-everywhere)
|
||||
- [▶ Deep down, we're all the same. *](#-deep-down-were-all-the-same-)
|
||||
- [▶ For what?](#-for-what)
|
||||
- [▶ Evaluation time discrepancy](#-evaluation-time-discrepancy)
|
||||
- [▶ `is` is not what it is!](#-is-is-not-what-it-is)
|
||||
- [▶ 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](#-the-sticky-output-function)
|
||||
- [▶ `is not ...` is not `is (not ...)`](#-is-not--is-not-is-not-)
|
||||
- [▶ The surprising comma](#-the-surprising-comma)
|
||||
- [▶ Backslashes at the end of string](#-backslashes-at-the-end-of-string)
|
||||
- [▶ not knot!](#-not-knot)
|
||||
- [▶ Half triple-quoted strings](#-half-triple-quoted-strings)
|
||||
- [▶ Midnight time doesn't exist?](#-midnight-time-doesnt-exist)
|
||||
- [▶ What's wrong with booleans?](#-whats-wrong-with-booleans)
|
||||
- [▶ Class attributes and instance attributes](#-class-attributes-and-instance-attributes)
|
||||
- [▶ yielding None](#-yielding-none)
|
||||
- [▶ Mutating the immutable!](#-mutating-the-immutable)
|
||||
- [▶ The disappearing variable from outer scope](#-the-disappearing-variable-from-outer-scope)
|
||||
- [▶ When True is actually False](#-when-true-is-actually-false)
|
||||
- [▶ From filled to None in one instruction...](#-from-filled-to-none-in-one-instruction)
|
||||
- [▶ Subclass relationships *](#-subclass-relationships-)
|
||||
- [▶ The mysterious key type conversion *](#-the-mysterious-key-type-conversion-)
|
||||
- [▶ Let's see if you can guess this?](#-lets-see-if-you-can-guess-this)
|
||||
- [▶ Strings can be tricky sometimes *](#%E2%96%B6-strings-can-be-tricky-sometimes-)
|
||||
- [💡 Explanation:](#-explanation)
|
||||
- [▶ Splitsies ^](#%E2%96%B6-splitsies-%5E)
|
||||
- [💡 Explanation:](#-explanation-1)
|
||||
- [▶ Time for some hash brownies!](#%E2%96%B6-time-for-some-hash-brownies)
|
||||
- [💡 Explanation](#-explanation)
|
||||
- [▶ The disorder within order ^](#%E2%96%B6-the-disorder-within-order-%5E)
|
||||
- [💡 Explanation:](#-explanation-2)
|
||||
- [▶ Keep trying? *](#%E2%96%B6-keep-trying-)
|
||||
- [💡 Explanation:](#-explanation-3)
|
||||
- [▶ Deep down, we're all the same. *](#%E2%96%B6-deep-down-were-all-the-same-)
|
||||
- [💡 Explanation:](#-explanation-4)
|
||||
- [▶ For what?](#%E2%96%B6-for-what)
|
||||
- [💡 Explanation:](#-explanation-5)
|
||||
- [▶ Evaluation time discrepancy ^](#%E2%96%B6-evaluation-time-discrepancy-%5E)
|
||||
- [💡 Explanation](#-explanation-1)
|
||||
- [▶ Messing around with `is` operator^](#%E2%96%B6-messing-around-with-is-operator%5E)
|
||||
- [💡 Explanation:](#-explanation-6)
|
||||
- [▶ 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)
|
||||
- [💡 Explanation:](#-explanation-7)
|
||||
- [▶ The sticky output function](#%E2%96%B6-the-sticky-output-function)
|
||||
- [💡 Explanation](#-explanation-2)
|
||||
- [▶ The chicken-egg problem ^](#%E2%96%B6-the-chicken-egg-problem-%5E)
|
||||
- [💡 Explanation](#-explanation-3)
|
||||
- [▶ `is not ...` is not `is (not ...)`](#%E2%96%B6-is-not--is-not-is-not-)
|
||||
- [💡 Explanation](#-explanation-4)
|
||||
- [▶ The surprising comma](#%E2%96%B6-the-surprising-comma)
|
||||
- [💡 Explanation:](#-explanation-8)
|
||||
- [▶ Strings and the backslashes\ ^](#%E2%96%B6-strings-and-the-backslashes%5C-%5E)
|
||||
- [💡 Explanation](#-explanation-5)
|
||||
- [▶ not knot!](#%E2%96%B6-not-knot)
|
||||
- [💡 Explanation:](#-explanation-9)
|
||||
- [▶ Half triple-quoted strings](#%E2%96%B6-half-triple-quoted-strings)
|
||||
- [💡 Explanation:](#-explanation-10)
|
||||
- [▶ Midnight time doesn't exist?](#%E2%96%B6-midnight-time-doesnt-exist)
|
||||
- [💡 Explanation:](#-explanation-11)
|
||||
- [▶ What's wrong with booleans?](#%E2%96%B6-whats-wrong-with-booleans)
|
||||
- [💡 Explanation:](#-explanation-12)
|
||||
- [▶ Class attributes and instance attributes](#%E2%96%B6-class-attributes-and-instance-attributes)
|
||||
- [💡 Explanation:](#-explanation-13)
|
||||
- [▶ yielding None](#%E2%96%B6-yielding-none)
|
||||
- [💡 Explanation:](#-explanation-14)
|
||||
- [▶ Mutating the immutable!](#%E2%96%B6-mutating-the-immutable)
|
||||
- [💡 Explanation:](#-explanation-15)
|
||||
- [▶ The disappearing variable from outer scope](#%E2%96%B6-the-disappearing-variable-from-outer-scope)
|
||||
- [💡 Explanation:](#-explanation-16)
|
||||
- [▶ When True is actually False](#%E2%96%B6-when-true-is-actually-false)
|
||||
- [💡 Explanation:](#-explanation-17)
|
||||
- [▶ Lossy zip of iterators](#%E2%96%B6-lossy-zip-of-iterators)
|
||||
- [💡 Explanation:](#-explanation-18)
|
||||
- [▶ From filled to None in one instruction...](#%E2%96%B6-from-filled-to-none-in-one-instruction)
|
||||
- [💡 Explanation](#-explanation-6)
|
||||
- [▶ Subclass relationships *](#%E2%96%B6-subclass-relationships-)
|
||||
- [💡 Explanation:](#-explanation-19)
|
||||
- [▶ The mysterious key type conversion *](#%E2%96%B6-the-mysterious-key-type-conversion-)
|
||||
- [💡 Explanation:](#-explanation-20)
|
||||
- [▶ Let's see if you can guess this?](#%E2%96%B6-lets-see-if-you-can-guess-this)
|
||||
- [💡 Explanation:](#-explanation-21)
|
||||
- [Section: Appearances are deceptive!](#section-appearances-are-deceptive)
|
||||
- [▶ Skipping lines?](#-skipping-lines)
|
||||
- [▶ Teleportation *](#-teleportation-)
|
||||
- [▶ Well, something is fishy...](#-well-something-is-fishy)
|
||||
- [▶ Skipping lines?](#%E2%96%B6-skipping-lines)
|
||||
- [💡 Explanation](#-explanation-7)
|
||||
- [▶ Teleportation *](#%E2%96%B6-teleportation-)
|
||||
- [💡 Explanation:](#-explanation-22)
|
||||
- [▶ Well, something is fishy...](#%E2%96%B6-well-something-is-fishy)
|
||||
- [💡 Explanation](#-explanation-8)
|
||||
- [Section: Watch out for the landmines!](#section-watch-out-for-the-landmines)
|
||||
- [▶ Modifying a dictionary while iterating over it](#-modifying-a-dictionary-while-iterating-over-it)
|
||||
- [▶ Stubborn `del` operator *](#-stubborn-del-operator-)
|
||||
- [▶ Deleting a list item while iterating](#-deleting-a-list-item-while-iterating)
|
||||
- [▶ Loop variables leaking out!](#-loop-variables-leaking-out)
|
||||
- [▶ Beware of default mutable arguments!](#-beware-of-default-mutable-arguments)
|
||||
- [▶ Catching the Exceptions](#-catching-the-exceptions)
|
||||
- [▶ Same operands, different story!](#-same-operands-different-story)
|
||||
- [▶ The out of scope variable](#-the-out-of-scope-variable)
|
||||
- [▶ Be careful with chained operations](#-be-careful-with-chained-operations)
|
||||
- [▶ Name resolution ignoring class scope](#-name-resolution-ignoring-class-scope)
|
||||
- [▶ Needle in a Haystack](#-needle-in-a-haystack)
|
||||
- [▶ Modifying a dictionary while iterating over it](#%E2%96%B6-modifying-a-dictionary-while-iterating-over-it)
|
||||
- [💡 Explanation:](#-explanation-23)
|
||||
- [▶ Stubborn `del` operation *](#%E2%96%B6-stubborn-del-operation-)
|
||||
- [💡 Explanation:](#-explanation-24)
|
||||
- [▶ Deleting a list item while iterating](#%E2%96%B6-deleting-a-list-item-while-iterating)
|
||||
- [💡 Explanation:](#-explanation-25)
|
||||
- [▶ Loop variables leaking out!](#%E2%96%B6-loop-variables-leaking-out)
|
||||
- [💡 Explanation:](#-explanation-26)
|
||||
- [▶ Beware of default mutable arguments!](#%E2%96%B6-beware-of-default-mutable-arguments)
|
||||
- [💡 Explanation:](#-explanation-27)
|
||||
- [▶ Catching the Exceptions](#%E2%96%B6-catching-the-exceptions)
|
||||
- [💡 Explanation](#-explanation-9)
|
||||
- [▶ Same operands, different story!](#%E2%96%B6-same-operands-different-story)
|
||||
- [💡 Explanation:](#-explanation-28)
|
||||
- [▶ The out of scope variable](#%E2%96%B6-the-out-of-scope-variable)
|
||||
- [💡 Explanation:](#-explanation-29)
|
||||
- [▶ Be careful with chained operations](#%E2%96%B6-be-careful-with-chained-operations)
|
||||
- [💡 Explanation:](#-explanation-30)
|
||||
- [▶ Name resolution ignoring class scope](#%E2%96%B6-name-resolution-ignoring-class-scope)
|
||||
- [💡 Explanation](#-explanation-10)
|
||||
- [▶ Needles in a Haystack ^](#%E2%96%B6-needles-in-a-haystack-%5E)
|
||||
- [💡 Explanation:](#-explanation-31)
|
||||
- [▶ Yielding from... return!](#-yielding-from-return)
|
||||
- [💡 Explanation:](#-explanation-31)
|
||||
- [▶ Wild imports](#%E2%96%B6-wild-imports)
|
||||
- [💡 Explanation:](#-explanation-32)
|
||||
- [Section: The Hidden treasures!](#section-the-hidden-treasures)
|
||||
- [▶ Okay Python, Can you make me fly? *](#-okay-python-can-you-make-me-fly-)
|
||||
- [▶ `goto`, but why? *](#-goto-but-why-)
|
||||
- [▶ Brace yourself! *](#-brace-yourself-)
|
||||
- [▶ Let's meet Friendly Language Uncle For Life *](#-lets-meet-friendly-language-uncle-for-life-)
|
||||
- [▶ Even Python understands that love is complicated *](#-even-python-understands-that-love-is-complicated-)
|
||||
- [▶ Yes, it exists!](#-yes-it-exists)
|
||||
- [▶ Inpinity *](#-inpinity-)
|
||||
- [▶ Mangling time! *](#-mangling-time-)
|
||||
- [▶ Okay Python, Can you make me fly? *](#%E2%96%B6-okay-python-can-you-make-me-fly-)
|
||||
- [💡 Explanation:](#-explanation-33)
|
||||
- [▶ `goto`, but why? *](#%E2%96%B6-goto-but-why-)
|
||||
- [💡 Explanation:](#-explanation-34)
|
||||
- [▶ Brace yourself! *](#%E2%96%B6-brace-yourself-)
|
||||
- [💡 Explanation:](#-explanation-35)
|
||||
- [▶ Let's meet Friendly Language Uncle For Life ^](#%E2%96%B6-lets-meet-friendly-language-uncle-for-life-%5E)
|
||||
- [💡 Explanation:](#-explanation-36)
|
||||
- [▶ Even Python understands that love is complicated *](#%E2%96%B6-even-python-understands-that-love-is-complicated-)
|
||||
- [💡 Explanation:](#-explanation-37)
|
||||
- [▶ Yes, it exists!](#%E2%96%B6-yes-it-exists)
|
||||
- [💡 Explanation:](#-explanation-38)
|
||||
- [▶ Ellipsis ^](#%E2%96%B6-ellipsis-%5E)
|
||||
- [💡 Explanation](#-explanation-11)
|
||||
- [▶ Inpinity *](#%E2%96%B6-inpinity-)
|
||||
- [💡 Explanation:](#-explanation-39)
|
||||
- [▶ Let's mangle ^](#%E2%96%B6-lets-mangle-%5E)
|
||||
- [💡 Explanation:](#-explanation-40)
|
||||
- [Section: Miscellaneous](#section-miscellaneous)
|
||||
- [▶ `+=` is faster](#--is-faster)
|
||||
- [▶ Let's make a giant string!](#-lets-make-a-giant-string)
|
||||
- [▶ Explicit typecast of strings](#-explicit-typecast-of-strings)
|
||||
- [▶ Minor Ones](#-minor-ones)
|
||||
- [▶ `+=` is faster](#%E2%96%B6--is-faster)
|
||||
- [💡 Explanation:](#-explanation-41)
|
||||
- [▶ Let's make a giant string!](#%E2%96%B6-lets-make-a-giant-string)
|
||||
- [💡 Explanation](#-explanation-12)
|
||||
- [▶ Explicit typecast of strings](#%E2%96%B6-explicit-typecast-of-strings)
|
||||
- [💡 Explanation:](#-explanation-42)
|
||||
- [▶ Minor Ones](#%E2%96%B6-minor-ones)
|
||||
- [Contributing](#contributing)
|
||||
- [Acknowledgements](#acknowledgements)
|
||||
- [Some nice Links!](#some-nice-links)
|
||||
- [🎓 License](#-license)
|
||||
- [Help](#help)
|
||||
- [Want to share wtfpython with friends?](#want-to-share-wtfpython-with-friends)
|
||||
- [Surprise your geeky pythonist friends?](#surprise-your-geeky-pythonist-friends)
|
||||
- [Need a pdf version?](#need-a-pdf-version)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
Loading…
Reference in New Issue
Block a user