1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-25 04:24:23 +01:00
Commit Graph

426 Commits

Author SHA1 Message Date
Satwik Kansal
74e857ee83 Add gitter info and update TOC
Add gitter channel information and update TOC
2017-10-11 16:00:31 +05:30
Satwik Kansal
2fff92ca56 Add gitter channel information and update TOC
Closes https://github.com/satwikkansal/wtfpython/issues/43
2017-10-11 15:58:22 +05:30
Satwik Kansal
27d54269bf Fix typo in output
Fix typo, expression output True and not [[...]]
2017-10-11 15:57:01 +05:30
Valentin Samir
6f66e1e065 Fix typo, expression output True and not [[...]] 2017-10-03 16:50:39 +02:00
Satwik Kansal
6a1bbc9136 package.json: Update version to 1.2.5 2017-09-11 22:15:31 +05:30
Satwik Kansal
e836b22a36 String concatenation optimizations: Update title
* Modifies the previously misleading title to be
more precise.

Related to https://github.com/satwikkansal/wtfpython/issues/38
2017-09-11 22:09:58 +05:30
Satwik Kansal
17a456adf1 Update contributing guide. 2017-09-11 21:52:45 +05:30
Satwik Kansal
76da1b8740 Skipping lines: Update explanation
* Add more accurate explanation
* Add more relevant example

Closes https://github.com/satwikkansal/wtfpython/issues/39
2017-09-11 21:41:00 +05:30
Satwik Kansal
2ade33dc6b Add link to another SO question
add link to a more specific Stack Overflow thread
2017-09-09 16:04:09 +05:30
zed
0a70a2e645 add link to a more specific Stack Overflow thread
[What happens when you try to delete a list element while iterating over it](https://stackoverflow.com/questions/45946228/what-happens-when-you-try-to-delete-a-list-element-while-iterating-over-it)
2017-09-07 20:39:02 +03:00
Satwik Kansal
9899f68df3 package.json: Update version to 1.2.4 2017-09-07 21:30:27 +05:30
Satwik Kansal
0d55258685 Structure of Example: Enhance formatting
Made the structure of example more distinguishing
2017-09-07 16:32:20 +05:30
sunqingyao
c2d42a5e52 Formatting 2017-09-07 16:52:34 +08:00
Satwik Kansal
66d9aaa705 Change Example title 2017-09-06 09:54:44 -07:00
Jacob Mansfield
5d8a9e60c8
"Is not" description is too descriptive, changed title to "is not is not
is (not)"
2017-09-06 17:47:28 +01:00
Satwik Kansal
fa368e8caf Table Of Contents: Add entries
* Adds new examples to the table of contents.
2017-09-06 19:01:05 +05:30
Satwik Kansal
f5ebf9c941 package.json: Update version to 1.2.3 2017-09-06 16:41:44 +05:30
Satwik Kansal
be98d88440 Add example: The surprising comma
Closes https://github.com/satwikkansal/wtfpython/issues/1
2017-09-06 16:40:38 +05:30
Satwik Kansal
cc3eb36f92 Minor Examples: Update explanation for multithreading example
* Clarifies that Python threads do run concurrently and are
  useful for I/O bound tasks.

Fixes https://github.com/satwikkansal/wtfpython/issues/30
2017-09-06 16:22:59 +05:30
Satwik Kansal
24c4a6469e Minor exmpample: Correct explanation
* `'a'[0][0][0][0][0]` is semanically correctly not because
  strings are iterables but because they are sequences as well.

Related to https://github.com/satwikkansal/wtfpython/issues/30
2017-09-06 16:22:59 +05:30
Satwik Kansal
5467a67f0f Add minor example
Adds an example to illustrate absence of
Increment and Decrement operators in Python.

Related to https://github.com/satwikkansal/wtfpython/issues/30
2017-09-06 16:22:59 +05:30
Satwik Kansal
8304eb7643 package.json: Upgrade to 1.2.2 2017-09-06 16:22:59 +05:30
Satwik Kansal
0492157664 Update Example: Same operands, different story!
* Clarifies that the difference between `a+=b` and `a=a+b` is not universal
2017-09-06 01:43:46 -07:00
Beni Cherniavsky-Paskin
2155d917df italic literal *op=* 2017-09-06 11:30:25 +03:00
Beni Cherniavsky-Paskin
c95ba00160 a+=b vs a=a+b : clarify the difference is not universal
Made the text say it depends on class, and rest of explanation talk of lists, not objects.
2017-09-06 09:12:37 +03:00
Satwik Kansal
330cb601cf Fix typo
Changes "f" to "t" in the output.
2017-09-05 06:44:34 -07:00
Wiktor Żurawik
57fb82428b Fix typo in the "For what?" example 2017-09-05 12:27:29 +02:00
Satwik Kansal
753d0b6aae Add example: For what?
* Adds a new example
* Merges an existing example "Loop variable resilient to changes"
  in the explanation of this example

Closes https://github.com/satwikkansal/wtfpython/issues/23
2017-09-05 00:52:19 +05:30
Satwik Kansal
7e93e0cb91 Update example: Deleting a list while iterating over it
* Corrects the explanation for `del` keyword.

Fixes https://github.com/satwikkansal/wtfpython/issues/16
2017-09-05 00:05:07 +05:30
Satwik Kansal
d4a60ac9d0 Update example: Time for more Hash brownies!
Remove previously ambiguous explnanation and
add more explanatory and clear explanation.

Fixes https://github.com/satwikkansal/wtfpython/issues/10
2017-09-04 23:39:23 +05:30
Satwik Kansal
8216f02618 Update exmaple: Counting the booleans
* Changes name to "What's wrong with booleans"
* Add another snippet to the example.
2017-09-04 23:22:13 +05:30
Satwik Kansal
ad6898e6f4 Fix pylint and flake8 warnings.
* Mark TabError as noqa to silence linters on Python 3
* Disable mixed_indentation warning for pylint
2017-09-04 10:22:03 -07:00
cclauss
68c675bb8e # noqa: E999 # pylint: disable=mixed-indentation 2017-09-04 19:19:16 +02:00
Satwik Kansal
6abfb50fc6 Add example: Not Knot!
Related to https://github.com/satwikkansal/wtfpython/issues/1
2017-09-04 22:31:48 +05:30
cclauss
c0a8151153 # noqa: E999 # pylint: disable=bad-indentation 2017-09-04 18:42:42 +02:00
cclauss
a6ce6259fa Mark TabError as noqa to silence linters on Python 3 2017-09-04 14:56:27 +02:00
Satwik Kansal
39480cc579 Fix typo
Assign "2" to match remainder of class attribute example
2017-09-04 03:24:14 -07:00
Jason A. Ribeiro
a42587ffb7 Assign "2" to match remainder of class attribute example 2017-09-03 19:26:36 -04:00
Satwik Kansal
426cb0c2cb Use consistent "Explanation" headings.
Changes headings with just "#### Explanation:" to "#### 💡 Explanation"
Fixes https://github.com/satwikkansal/wtfpython/issues/22
2017-09-03 01:31:41 +05:30
Satwik Kansal
fe050b8198 Fix typos
Fixes 3 spelling mistakes.
2017-09-02 11:44:15 -07:00
Chandan Rai
31f617d4aa corrected typos 2017-09-02 17:39:50 +05:30
Satwik Kansal
9d0bba8c4c Fix typo
Changes Example to Example
2017-09-01 19:11:57 -07:00
Sebastian Krzyszkowiak
8cf1148a41 Fix typo 2017-09-01 23:05:03 +01:00
Satwik Kansal
424b240acc Fix typo
Changes "shelll" to "shell".
2017-09-02 00:07:23 +05:30
Satwik Kansal
71b6e2812d Update Table Of Contents 2017-09-01 23:58:59 +05:30
Satwik Kansal
1b8d9ef06a Add new example: Counting the booleans
* Moves the "Booleans are subclass of int" example
from "Minor Ones" list to a new example.
2017-09-01 22:47:05 +05:30
Satwik Kansal
82bbded3da Change the position of the notes.
* Moves the position of the information regarding the
Python version so that it is not skipped by the readers.
* Also moves the position of the instructions for reproducing the
"Skipping lines" example to just below the output.

Closes https://github.com/satwikkansal/wtfPython/issues/17
2017-09-01 22:24:47 +05:30
Satwik Kansal
046663efff Fix wrong output
Fixed wrong output of `isinstance(False, float)`
2017-09-01 09:34:54 -07:00
Jeppe Pihl
bd05e9e723 Fixed wrong output of isinstance(False, float)
Fixed the output of `isinstance(False, float)` and changed `False` to `True` to match `isinstance(True, int)`
2017-09-01 15:13:09 +02:00
Satwik Kansal
f5565ee615 package.json: Upgrade to 1.2.1
* Changes version from 1.2.0 to 1.2.1
* Publish to npm
2017-09-01 16:29:33 +05:30