mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-22 11:04:25 +01:00
Fix toc
This commit is contained in:
parent
4618bed5f6
commit
d3157d61a3
141
README.md
vendored
141
README.md
vendored
@ -20,85 +20,82 @@ So, here we go...
|
|||||||
|
|
||||||
# Table of Contents
|
# Table of Contents
|
||||||
|
|
||||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
<!-- toc -->
|
||||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
||||||
|
|
||||||
|
|
||||||
- [Structure of the Examples](#structure-of-the-examples)
|
- [Structure of the Examples](#structure-of-the-examples)
|
||||||
|
+ [▶ Some fancy Title](#-some-fancy-title)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [👀 Examples](#-examples)
|
- [👀 Examples](#-examples)
|
||||||
- [Section: Strain your brain!](#section-strain-your-brain)
|
* [Section: Strain your brain!](#section-strain-your-brain)
|
||||||
- [▶ 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)
|
||||||
- [is same as](#is-same-as)
|
+ [▶ Time for some hash brownies!](#-time-for-some-hash-brownies)
|
||||||
- [but](#but)
|
+ [▶ The disorder within order](#-the-disorder-within-order)
|
||||||
- [isn't the same as](#isnt-the-same-as)
|
+ [▶ Keep trying?](#-keep-trying)
|
||||||
- [▶ Time for some hash brownies!](#%E2%96%B6-time-for-some-hash-brownies)
|
+ [▶ Deep down, we're all the same](#-deep-down-were-all-the-same)
|
||||||
- [▶ The disorder within order](#%E2%96%B6-the-disorder-within-order)
|
+ [▶ For what?](#-for-what)
|
||||||
- [▶ Keep trying?](#%E2%96%B6-keep-trying)
|
+ [▶ Evaluation time discrepancy](#-evaluation-time-discrepancy)
|
||||||
- [▶ Deep down, we're all the same](#%E2%96%B6-deep-down-were-all-the-same)
|
+ [▶ Messing around with `is` operator](#-messing-around-with-is-operator)
|
||||||
- [▶ For what?](#%E2%96%B6-for-what)
|
+ [▶ A tic-tac-toe where X wins in the first attempt!](#-a-tic-tac-toe-where-x-wins-in-the-first-attempt)
|
||||||
- [▶ Evaluation time discrepancy](#%E2%96%B6-evaluation-time-discrepancy)
|
+ [▶ The sticky output function](#-the-sticky-output-function)
|
||||||
- [▶ Messing around with `is` operator^](#%E2%96%B6-messing-around-with-is-operator%5E)
|
+ [▶ The chicken-egg problem](#-the-chicken-egg-problem)
|
||||||
- [▶ 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)
|
+ [▶ `is not ...` is not `is (not ...)`](#-is-not--is-not-is-not-)
|
||||||
- [▶ The sticky output function](#%E2%96%B6-the-sticky-output-function)
|
+ [▶ The surprising comma](#-the-surprising-comma)
|
||||||
- [▶ The chicken-egg problem](#%E2%96%B6-the-chicken-egg-problem)
|
+ [▶ Strings and the backslashes](#-strings-and-the-backslashes)
|
||||||
- [▶ `is not ...` is not `is (not ...)`](#%E2%96%B6-is-not--is-not-is-not-)
|
+ [▶ not knot!](#-not-knot)
|
||||||
- [▶ The surprising comma](#%E2%96%B6-the-surprising-comma)
|
+ [▶ Half triple-quoted strings](#-half-triple-quoted-strings)
|
||||||
- [▶ Strings and the backslashes](#%E2%96%B6-strings-and-the-backslashes)
|
+ [▶ Midnight time doesn't exist?](#-midnight-time-doesnt-exist)
|
||||||
- [▶ not knot!](#%E2%96%B6-not-knot)
|
+ [▶ What's wrong with booleans?](#-whats-wrong-with-booleans)
|
||||||
- [▶ Half triple-quoted strings](#%E2%96%B6-half-triple-quoted-strings)
|
+ [▶ Class attributes and instance attributes](#-class-attributes-and-instance-attributes)
|
||||||
- [▶ Midnight time doesn't exist?](#%E2%96%B6-midnight-time-doesnt-exist)
|
+ [▶ yielding None](#-yielding-none)
|
||||||
- [▶ What's wrong with booleans?](#%E2%96%B6-whats-wrong-with-booleans)
|
+ [▶ Mutating the immutable!](#-mutating-the-immutable)
|
||||||
- [▶ Class attributes and instance attributes](#%E2%96%B6-class-attributes-and-instance-attributes)
|
+ [▶ The disappearing variable from outer scope](#-the-disappearing-variable-from-outer-scope)
|
||||||
- [▶ yielding None](#%E2%96%B6-yielding-none)
|
+ [▶ When True is actually False](#-when-true-is-actually-false)
|
||||||
- [▶ Mutating the immutable!](#%E2%96%B6-mutating-the-immutable)
|
+ [▶ Lossy zip of iterators](#-lossy-zip-of-iterators)
|
||||||
- [▶ The disappearing variable from outer scope](#%E2%96%B6-the-disappearing-variable-from-outer-scope)
|
+ [▶ From filled to None in one instruction...](#-from-filled-to-none-in-one-instruction)
|
||||||
- [▶ When True is actually False](#%E2%96%B6-when-true-is-actually-false)
|
+ [▶ Subclass relationships](#-subclass-relationships)
|
||||||
- [▶ Lossy zip of iterators](#%E2%96%B6-lossy-zip-of-iterators)
|
+ [▶ The mysterious key type conversion](#-the-mysterious-key-type-conversion)
|
||||||
- [▶ From filled to None in one instruction...](#%E2%96%B6-from-filled-to-none-in-one-instruction)
|
+ [▶ Let's see if you can guess this?](#-lets-see-if-you-can-guess-this)
|
||||||
- [▶ Subclass relationships](#%E2%96%B6-subclass-relationships)
|
* [Section: Appearances are deceptive!](#section-appearances-are-deceptive)
|
||||||
- [▶ The mysterious key type conversion](#%E2%96%B6-the-mysterious-key-type-conversion)
|
+ [▶ Skipping lines?](#-skipping-lines)
|
||||||
- [▶ Let's see if you can guess this?](#%E2%96%B6-lets-see-if-you-can-guess-this)
|
+ [▶ Teleportation](#-teleportation)
|
||||||
- [Section: Appearances are deceptive!](#section-appearances-are-deceptive)
|
+ [▶ Well, something is fishy...](#-well-something-is-fishy)
|
||||||
- [▶ Skipping lines?](#%E2%96%B6-skipping-lines)
|
* [Section: Watch out for the landmines!](#section-watch-out-for-the-landmines)
|
||||||
- [▶ Teleportation](#%E2%96%B6-teleportation)
|
+ [▶ Modifying a dictionary while iterating over it](#-modifying-a-dictionary-while-iterating-over-it)
|
||||||
- [▶ Well, something is fishy...](#%E2%96%B6-well-something-is-fishy)
|
+ [▶ Stubborn `del` operation](#-stubborn-del-operation)
|
||||||
- [Section: Watch out for the landmines!](#section-watch-out-for-the-landmines)
|
+ [▶ Deleting a list item while iterating](#-deleting-a-list-item-while-iterating)
|
||||||
- [▶ Modifying a dictionary while iterating over it](#%E2%96%B6-modifying-a-dictionary-while-iterating-over-it)
|
+ [▶ Loop variables leaking out!](#-loop-variables-leaking-out)
|
||||||
- [▶ Deleting a list item while iterating](#%E2%96%B6-deleting-a-list-item-while-iterating)
|
+ [▶ Beware of default mutable arguments!](#-beware-of-default-mutable-arguments)
|
||||||
- [▶ Loop variables leaking out!](#%E2%96%B6-loop-variables-leaking-out)
|
+ [▶ Catching the Exceptions](#-catching-the-exceptions)
|
||||||
- [▶ Beware of default mutable arguments!](#%E2%96%B6-beware-of-default-mutable-arguments)
|
+ [▶ Same operands, different story!](#-same-operands-different-story)
|
||||||
- [▶ Catching the Exceptions](#%E2%96%B6-catching-the-exceptions)
|
+ [▶ The out of scope variable](#-the-out-of-scope-variable)
|
||||||
- [▶ Same operands, different story!](#%E2%96%B6-same-operands-different-story)
|
+ [▶ Be careful with chained operations](#-be-careful-with-chained-operations)
|
||||||
- [▶ The out of scope variable](#%E2%96%B6-the-out-of-scope-variable)
|
+ [▶ Name resolution ignoring class scope](#-name-resolution-ignoring-class-scope)
|
||||||
- [▶ Be careful with chained operations](#%E2%96%B6-be-careful-with-chained-operations)
|
+ [▶ Needles in a Haystack](#-needles-in-a-haystack)
|
||||||
- [▶ Name resolution ignoring class scope](#%E2%96%B6-name-resolution-ignoring-class-scope)
|
+ [▶ Wild imports](#-wild-imports)
|
||||||
- [▶ Needles in a Haystack](#%E2%96%B6-needles-in-a-haystack)
|
* [Section: The Hidden treasures!](#section-the-hidden-treasures)
|
||||||
- [▶ Wild imports](#%E2%96%B6-wild-imports)
|
+ [▶ Okay Python, Can you make me fly?](#-okay-python-can-you-make-me-fly)
|
||||||
- [Section: The Hidden treasures!](#section-the-hidden-treasures)
|
+ [▶ `goto`, but why?](#-goto-but-why)
|
||||||
- [▶ Okay Python, Can you make me fly?](#%E2%96%B6-okay-python-can-you-make-me-fly)
|
+ [▶ Brace yourself!](#-brace-yourself)
|
||||||
- [▶ `goto`, but why?](#%E2%96%B6-goto-but-why)
|
+ [▶ Let's meet Friendly Language Uncle For Life](#-lets-meet-friendly-language-uncle-for-life)
|
||||||
- [▶ Brace yourself!](#%E2%96%B6-brace-yourself)
|
+ [▶ Even Python understands that love is complicated](#-even-python-understands-that-love-is-complicated)
|
||||||
- [▶ Let's meet Friendly Language Uncle For Life](#%E2%96%B6-lets-meet-friendly-language-uncle-for-life)
|
+ [▶ Yes, it exists!](#-yes-it-exists)
|
||||||
- [▶ Even Python understands that love is complicated](#%E2%96%B6-even-python-understands-that-love-is-complicated)
|
+ [▶ Ellipsis](#-ellipsis)
|
||||||
- [▶ Yes, it exists!](#%E2%96%B6-yes-it-exists)
|
+ [▶ Inpinity](#-inpinity)
|
||||||
- [▶ Ellipsis](#%E2%96%B6-ellipsis)
|
+ [▶ Let's mangle](#-lets-mangle)
|
||||||
- [▶ Inpinity](#%E2%96%B6-inpinity)
|
* [Section: Miscellaneous](#section-miscellaneous)
|
||||||
- [▶ Let's mangle](#%E2%96%B6-lets-mangle)
|
+ [▶ `+=` is faster](#--is-faster)
|
||||||
- [Section: Miscellaneous](#section-miscellaneous)
|
+ [▶ Let's make a giant string!](#-lets-make-a-giant-string)
|
||||||
- [▶ `+=` is faster](#%E2%96%B6--is-faster)
|
+ [▶ Explicit typecast of strings](#-explicit-typecast-of-strings)
|
||||||
- [▶ Let's make a giant string!](#%E2%96%B6-lets-make-a-giant-string)
|
+ [▶ Minor Ones](#-minor-ones)
|
||||||
- [▶ Explicit typecast of strings](#%E2%96%B6-explicit-typecast-of-strings)
|
|
||||||
- [▶ Minor Ones](#%E2%96%B6-minor-ones)
|
|
||||||
- [Contributing](#contributing)
|
- [Contributing](#contributing)
|
||||||
- [Acknowledgements](#acknowledgements)
|
- [Acknowledgements](#acknowledgements)
|
||||||
- [🎓 License](#-license)
|
- [🎓 License](#-license)
|
||||||
- [Help](#help)
|
* [Help](#help)
|
||||||
- [Surprise your geeky pythonist friends?](#surprise-your-geeky-pythonist-friends)
|
* [Surprise your geeky pythonist friends?](#surprise-your-geeky-pythonist-friends)
|
||||||
- [Need a pdf version?](#need-a-pdf-version)
|
* [Need a pdf version?](#need-a-pdf-version)
|
||||||
|
|
||||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
<!-- tocstop -->
|
||||||
|
|
||||||
# Structure of the Examples
|
# Structure of the Examples
|
||||||
|
|
||||||
@ -623,7 +620,7 @@ array_4 = [400, 500, 600]
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### ▶ Messing around with `is` operator^
|
### ▶ Messing around with `is` operator
|
||||||
<!-- Example ID: 230fa2ac-ab36-4ad1-b675-5f5a1c1a6217 --->
|
<!-- Example ID: 230fa2ac-ab36-4ad1-b675-5f5a1c1a6217 --->
|
||||||
The following is a very famous example present all over the internet.
|
The following is a very famous example present all over the internet.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user