1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-27 21:44:22 +01:00
Commit Graph

577 Commits

Author SHA1 Message Date
Satwik Kansal
5edef33cae
Merge pull request #203 from secworks/master
'less than 21' is the correct expression.
2020-05-02 21:50:04 +05:30
Joachim Strömbergson
9ff40de544
'less than 21' is the correct expression. Could slso be 'less or equal to 20'. 2020-05-02 08:54:24 +02:00
Satwik Kansal
0684777fa3
Merge pull request #199 from LeafyLi/master
Replace http link with https
2020-04-26 23:38:43 +05:30
zenglifa@msu.edu
f735fe3116 Replace http link with https 2020-04-25 15:37:50 -04:00
Satwik Kansal
669ff8c30e
Merge pull request #192 from Jongy/correctify-stubborn-del-explanation
Correctify explanation of "Stubborn `del` operation"
2020-03-25 22:40:42 +05:30
Yonatan Goldschmidt
67f743eddd Correctify explanation of Stubborn del operation 2020-03-24 23:12:47 +02:00
myrmica-habilis
78cb5f39f5 Update README.md
- assignment expressions are evaluated and printed by the REPL
2020-03-20 11:00:29 +01:00
Satwik Kansal
e9b04d33f7
Merge pull request #181 from Haksell/correct-six-typos
Correct six typos
2020-02-16 02:31:40 +05:30
Satwik Kansal
733061f90d
Merge pull request #183 from Pradhvan/UpdatingDoc
README.md: Update Python version in 'Modifying a dictionary while ite…
2020-02-15 14:35:55 +05:30
Pradhvan
184df9f99d README.md: Update Python version in 'Modifying a dictionary while iterating over it' example 2020-02-15 14:30:05 +05:30
Haksell
a4af8a4e0c Correct six typos 2020-02-15 09:04:24 +01:00
Haksell
50265e91fc Correct six typos 2020-02-15 09:03:08 +01:00
Satwik Kansal
6cebc952c3
Fix minor typo in the "is not" example 2020-01-20 14:23:20 +05:30
Satwik Kansal
bd7cd4334c
Merge pull request #175 from larsks/fix/is-not
Extend the explanation of the "is not ..." section
2020-01-20 14:20:57 +05:30
Satwik Kansal
97c10e6fda
Merge pull request #177 from larsks/fix/quotes
Clarify for quoting examples
2020-01-20 14:20:22 +05:30
Satwik Kansal
8e6c850f30
Merge pull request #178 from larsks/fix/bad-logic
Fixed logic error in "Beware of default mutable arguments!"
2020-01-20 14:18:41 +05:30
Satwik Kansal
e74ccb79d0
Merge pull request #176 from larsks/fix/grammar
A minor grammar correction
2020-01-20 14:17:48 +05:30
Satwik Kansal
daf156abf5
Merge pull request #174 from larsks/spelling
Fix spelling (found -> find)
2020-01-20 14:13:23 +05:30
Lars Kellogg-Stedman
16c90f9b24 Fixed logic error in "Beware of default mutable arguments!"
The example showing how using None as a default argument is used
instead of a mutable default argument had reversed logic.  It would
set default_arg to [] whenever the caller passed a non-None argument.
2020-01-19 12:03:30 -05:00
Lars Kellogg-Stedman
3e99005ae4 Clarify for quoting examples
The example of the use of backslash to escape a double-quote makes
more sense when used inside a double-quoted string. If the string is
quoted with single quotes, one could of course just write 'wt"f'
withouth requiring any escaping.
2020-01-19 10:19:17 -05:00
Lars Kellogg-Stedman
8370f3a3b9 A minor grammar correction 2020-01-19 10:16:47 -05:00
Lars Kellogg-Stedman
f20be4cfc4 Extend the explanation of the "is not ..." section
I thought that the explanation for "'something' is (not None)" could
be a little more explicit.
2020-01-19 10:13:50 -05:00
Lars Kellogg-Stedman
00a1228ca3 Fix spelling (found -> find)
Noticed a minor spelling error while reading through this fantastic
document.
2020-01-19 10:04:41 -05:00
Satwik Kansal
de113d2491
Merge pull request #170 from art049/master
Wild imports typo
2020-01-12 00:34:12 +05:30
Satwik Kansal
ffb1599458
Merge pull request #171 from entwanne/needles-haystack-example-6
Fix explanation for 6th example of "Needles in a Haystack"
2020-01-12 00:33:30 +05:30
Antoine Rozo
5f8067df42 Fix explanation for 6th example of "Needles in a Haystack" 2020-01-10 14:39:29 +01:00
Arthur Pastel
30a6623ccd
Wild imports typo 2020-01-10 12:43:16 +01:00
Satwik Kansal
83cac75f41
Merge pull request #169 from kerolloz/master
Fix issue creating link
2020-01-10 14:40:07 +05:30
Kerollos Magdy
d1a4144143
Fix issue creating link 2020-01-09 13:12:14 +02:00
Satwik Kansal
3e98cf1ceb
Merge pull request #168 from chrisguox/update-docs
Fixed example input error
2020-01-09 14:50:47 +05:30
Chris Guo
43679ebd1e fix: fix example input error 2020-01-08 00:09:25 +08:00
Satwik Kansal
0d65c00bb6
Merge pull request #166 from louisguitton/patch-1
Fix typo in 'Strings can be tricky sometimes'
2020-01-06 19:39:21 +05:30
Satwik Kansal
255b9a574b
Merge pull request #167 from OdinTech3/patch-1
Fixed mispelling
2020-01-06 19:38:49 +05:30
Nick Muoh
68f6e0217c
Fixed mispelling 2020-01-04 19:49:32 -05:00
Louis Guitton
3d64252310
Fix typo in 'Strings can be tricky sometimes' 2020-01-04 17:16:09 +01:00
Satwik
185d60c1b6 Update hash brownies explanation and the logical order of few examples.
Addresses https://github.com/satwikkansal/wtfpython/pull/76
2019-12-31 16:10:45 +05:30
Satwik Kansal
1b3b2e6c71
Fix typo
Closes https://github.com/satwikkansal/wtfpython/issues/165
2019-12-30 19:20:31 +05:30
Satwik Kansal
f98bd4363f
Fix typo
Closes https://github.com/satwikkansal/wtfpython/issues/164
2019-12-30 13:05:38 +05:30
Satwik
2c910351b7 Fix relevant typos detected by codespell
Closes https://github.com/satwikkansal/wtfpython/issues/161
2019-12-27 20:05:17 +05:30
Satwik
9a2718ae3a Fix typo
Closes https://github.com/satwikkansal/wtfpython/issues/162
2019-12-27 20:05:17 +05:30
Satwik Kansal
183e0d9ee5
Merge pull request #160 from vrthra/patch-1
Make sure that default_arg is not passed rather than checking for fal…
2019-12-25 19:21:24 +05:30
Rahul Gopinath
2f2fcf87bc
Make sure that default_arg is not passed rather than checking for falsity
```
if not default_arg:
    ...
```
fails when `default_arg` can be assigned and still be false (implementing a `__bool__` or `__len__` etc). You dont want to overwrite the passed values.
2019-12-25 10:10:53 +01:00
Satwik Kansal
99280f57a0
Merge pull request #159 from boppreh/patch-1
Update README.md
2019-12-25 01:23:18 +05:30
Satwik
7c85a73442 Move discussion thread links to the links section 2019-12-25 00:09:55 +05:30
BoppreH
e4f340281c
Update README.md
Fix incorrect output for f-string.
2019-12-24 14:02:22 -03:00
Satwik
6c0ed6e7c5 Add discussion links 2019-12-24 21:47:59 +05:30
Satwik
dcc2e6a3d8 Update links 2019-12-24 20:09:12 +05:30
Satwik
a1b4f8d521 Put the pdf link back on demand 2019-12-23 23:13:08 +05:30
Satwik Kansal
328168c86f
Merge pull request #158 from rscircus/patch-1
Fix typo in dictionary section
2019-12-23 21:25:38 +05:30
puɐloɹ ʇɹǝqƃǝᴉs
73a1248d04
Fix typo in dictionary section 2019-12-23 16:31:44 +01:00