mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-22 11:04:25 +01:00
Update table of contents
This commit is contained in:
parent
3d8bc2cdd6
commit
69da562140
60
README.md
60
README.md
@ -22,37 +22,37 @@ So, here ya go...
|
|||||||
|
|
||||||
- [Structure of the Examples](#structure-of-the-examples)
|
- [Structure of the Examples](#structure-of-the-examples)
|
||||||
- [Some fancy Title](#some-fancy-title)
|
- [Some fancy Title](#some-fancy-title)
|
||||||
- [💡 Explaination:](#-Explaination)
|
- [💡 Explaination:](#-explaination)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [👀 Examples](#-examples)
|
- [👀 Examples](#-examples)
|
||||||
- [`datetime.time` object is considered to be false if it represented midnight in UTC](#datetimetime-object-is-considered-to-be-false-if-it-represented-midnight-in-utc)
|
- [Midnight time doesn't exist?](#midnight-time-doesnt-exist)
|
||||||
- [💡 Explaination:](#-Explaination-1)
|
- [💡 Explaination:](#-explaination-1)
|
||||||
- [`is` is not what it is!](#is-is-not-what-it-is)
|
- [`is` is not what it is!](#is-is-not-what-it-is)
|
||||||
- [💡 Explaination:](#-Explaination-2)
|
- [💡 Explaination:](#-explaination-2)
|
||||||
- [The function inside loop magic](#the-function-inside-loop-magic)
|
- [The function inside loop sticks to the same output](#the-function-inside-loop-sticks-to-the-same-output)
|
||||||
- [Explaination](#explaination)
|
- [Explaination](#explaination)
|
||||||
- [Loop variables leaking out of local scope!](#loop-variables-leaking-out-of-local-scope)
|
- [Loop variables leaking out of local scope!](#loop-variables-leaking-out-of-local-scope)
|
||||||
- [💡 Explaination:](#-Explaination-3)
|
- [💡 Explaination:](#-explaination-3)
|
||||||
- [A tic-tac-toe where X wins in first attempt!](#a-tic-tac-toe-where-x-wins-in-first-attempt)
|
- [A tic-tac-toe where X wins in first attempt!](#a-tic-tac-toe-where-x-wins-in-first-attempt)
|
||||||
- [💡 Explaination:](#-Explaination-4)
|
- [💡 Explaination:](#-explaination-4)
|
||||||
- [Beware of default mutable arguments!](#beware-of-default-mutable-arguments)
|
- [Beware of default mutable arguments!](#beware-of-default-mutable-arguments)
|
||||||
- [💡 Explaination:](#-Explaination-5)
|
- [💡 Explaination:](#-explaination-5)
|
||||||
- [You can't change the values contained in tuples because they're immutable.. Oh really?](#you-cant-change-the-values-contained-in-tuples-because-theyre-immutable-oh-really)
|
- [Mutating the immutable!](#mutating-the-immutable)
|
||||||
- [💡 Explaination:](#-Explaination-6)
|
- [💡 Explaination:](#-explaination-6)
|
||||||
- [Using a varibale not defined in scope](#using-a-varibale-not-defined-in-scope)
|
- [Using a variable not defined in scope](#using-a-variable-not-defined-in-scope)
|
||||||
- [💡 Explaination:](#-Explaination-7)
|
- [💡 Explaination:](#-explaination-7)
|
||||||
- [The disappearing variable from outer scope](#the-disappearing-variable-from-outer-scope)
|
- [The disappearing variable from outer scope](#the-disappearing-variable-from-outer-scope)
|
||||||
- [💡 Explaination:](#-Explaination-8)
|
- [💡 Explaination:](#-explaination-8)
|
||||||
- [Return in both `try` and `finally` clauses](#return-in-both-try-and-finally-clauses)
|
- [Return return everywhere!](#return-return-everywhere)
|
||||||
- [💡 Explaination:](#-Explaination-9)
|
- [💡 Explaination:](#-explaination-9)
|
||||||
- [When True is actually False](#when-true-is-actually-false)
|
- [When True is actually False](#when-true-is-actually-false)
|
||||||
- [💡 Explaination:](#-Explaination-10)
|
- [💡 Explaination:](#-explaination-10)
|
||||||
- [Evaluation time disperancy](#evaluation-time-disperancy)
|
- [Evaluation time disperancy](#evaluation-time-disperancy)
|
||||||
- [Explainiation](#explainiation)
|
- [💡 Explaination](#-explaination)
|
||||||
- [Be careful with chained operations](#be-careful-with-chained-operations)
|
- [Be careful with chained operations](#be-careful-with-chained-operations)
|
||||||
- [💡 Explaination:](#-Explaination-11)
|
- [💡 Explaination:](#-explaination-11)
|
||||||
- [a += b doesn't behave the same way as a = a + b](#a--b-doesnt-behave-the-same-way-as-a--a--b)
|
- [a += b doesn't behave the same way as a = a + b](#a--b-doesnt-behave-the-same-way-as-a--a--b)
|
||||||
- [💡 Explaination:](#-Explaination-12)
|
- [💡 Explaination:](#-explaination-12)
|
||||||
- [Backslashes at the end of string](#backslashes-at-the-end-of-string)
|
- [Backslashes at the end of string](#backslashes-at-the-end-of-string)
|
||||||
- [Explaination](#explaination-1)
|
- [Explaination](#explaination-1)
|
||||||
- [Editing a dictionary while iterating over it](#editing-a-dictionary-while-iterating-over-it)
|
- [Editing a dictionary while iterating over it](#editing-a-dictionary-while-iterating-over-it)
|
||||||
@ -61,29 +61,27 @@ So, here ya go...
|
|||||||
- [Explaination](#explaination-2)
|
- [Explaination](#explaination-2)
|
||||||
- [Time for some hash brownies!](#time-for-some-hash-brownies)
|
- [Time for some hash brownies!](#time-for-some-hash-brownies)
|
||||||
- [Explaination](#explaination-3)
|
- [Explaination](#explaination-3)
|
||||||
- [Identical looking names](#identical-looking-names)
|
- [Skipping lines?](#skipping-lines)
|
||||||
- [Explaination](#explaination-4)
|
- [Explaination](#explaination-4)
|
||||||
- [Name resolution ignoring class scope](#name-resolution-ignoring-class-scope)
|
- [Name resolution ignoring class scope](#name-resolution-ignoring-class-scope)
|
||||||
- [Explaination](#explaination-5)
|
- [💡 Explaination](#-explaination-1)
|
||||||
- [In-place update functions of mutable object types](#in-place-update-functions-of-mutable-object-types)
|
- [From filled to None in one instruction...](#from-filled-to-none-in-one-instruction)
|
||||||
- [Explaination](#explaination-6)
|
- [💡 Explaination](#-explaination-2)
|
||||||
- [Deleting a list item while iterating over it](#deleting-a-list-item-while-iterating-over-it)
|
- [Deleting a list item while iterating over it](#deleting-a-list-item-while-iterating-over-it)
|
||||||
- [💡 Explaination:](#-Explaination-13)
|
- [💡 Explaination:](#-explaination-13)
|
||||||
- [Explicit typecast of strings](#explicit-typecast-of-strings)
|
- [Explicit typecast of strings](#explicit-typecast-of-strings)
|
||||||
- [💡 Explaination:](#-Explaination-14)
|
- [💡 Explaination:](#-explaination-14)
|
||||||
- [Well, something is fishy...](#well-something-is-fishy)
|
- [Well, something is fishy...](#well-something-is-fishy)
|
||||||
- [Explaination](#explaination-7)
|
- [Explaination](#explaination-5)
|
||||||
- [Class attributes and instance attributes](#class-attributes-and-instance-attributes)
|
- [Class attributes and instance attributes](#class-attributes-and-instance-attributes)
|
||||||
- [Explaination:](#explaination-1)
|
- [Explaination:](#explaination-1)
|
||||||
- [Catching the Exceptions!](#catching-the-exceptions)
|
- [Catching the Exceptions!](#catching-the-exceptions)
|
||||||
- [Explaination](#explaination-8)
|
- [Explaination](#explaination-6)
|
||||||
- [String concatenation](#string-concatenation)
|
- [String concatenation](#string-concatenation)
|
||||||
- [Explanination](#explanination)
|
- [Explanination](#explanination)
|
||||||
- [Minor Ones](#minor-ones)
|
- [Minor Ones](#minor-ones)
|
||||||
- ["Needle in a Haystack" bugs](#needle-in-a-haystack-bugs)
|
- [Needle in a Haystack](#needle-in-a-haystack)
|
||||||
- [Initializing a tuple containing single element](#initializing-a-tuple-containing-single-element)
|
- [💡 Explaination:](#-explaination-15)
|
||||||
- [💡 Explaination:](#-Explaination-15)
|
|
||||||
- [TODO: Collect and add more such examples](#todo-collect-and-add-more-such-examples)
|
|
||||||
- [TODO: Hell of an example!](#todo-hell-of-an-example)
|
- [TODO: Hell of an example!](#todo-hell-of-an-example)
|
||||||
- [Contributing](#contributing)
|
- [Contributing](#contributing)
|
||||||
- [Acknowledgements](#acknowledgements)
|
- [Acknowledgements](#acknowledgements)
|
||||||
|
Loading…
Reference in New Issue
Block a user