Skip to content

Commit bf161dd

Browse files
committed
update help section
1 parent ba6870a commit bf161dd

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

README.md

+47-3
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,50 @@ Freedom!
556556
557557
---
558558
559+
### Let's meet Friendly Language Uncle For Life
560+
561+
**Output (Python 3.x)**
562+
```py
563+
>>> from __future__ import barry_as_FLUFL
564+
>>> "Ruby" != "Python" # there's no doubt about it
565+
File "some_file.py", line 1
566+
"Ruby" != "Python"
567+
^
568+
SyntaxError: invalid syntax
569+
570+
>>> "Ruby" <> "Python"
571+
True
572+
```
573+
574+
There we go.
575+
576+
#### 💡 Explanation:
577+
- This is relevant to [PEP-401](https://www.python.org/dev/peps/pep-0401/) released on April 1, 2009 (now you know, what it means).
578+
- Quoting from the PEP-401
579+
Recognized that the != inequality operator in Python 3.0 was a horrible, finger pain inducing mistake, the FLUFL reinstates the <> diamond operator as the sole spelling.
580+
- There's more that Uncle Barry had to share in the PEP, you can read it [here](https://www.python.org/dev/peps/pep-0401/).
581+
582+
---
583+
584+
### Inpinity
585+
586+
The spelling is intended. Please, don't submit a patch for this.
587+
588+
**Output (Python 3.x):**
589+
```py
590+
>>> infinity = float('infinity')
591+
>>> hash(infinity)
592+
314159
593+
>>> hash(float('-inf'))
594+
-314159
595+
```
596+
597+
#### 💡 Explanation:
598+
- Hash of infinity is 10⁵ x π.
599+
- Interestingly, hash of `float('-inf')` is "-10⁵ x π" in Python 3, whereas "-10⁵ x e" in Python 2.
600+
601+
---
602+
559603
### Strings can be tricky sometimes
560604
561605
1\.
@@ -2320,12 +2364,12 @@ The idea and design for this collection are inspired by Denys Dovhan's awesome p
23202364
23212365
# Help
23222366
2323-
I'm looking for full-time opportunities, I'd highly appreciate if you could do me a small favor by letting me know about open positions around you.
2367+
Thanks a ton for reading this project, I hope you enjoyed it and found it informative!
23242368
2369+
I'm looking for full-time opportunities, I'd highly appreciate if you could do me a small favor by letting me know about open positions around you. You can find more about me [here](https://satwikkansal.xyz).
23252370
2326-
Thanks a ton for reading this project, I hope you enjoyed it and found it informative!
23272371
2328-
**Want to share What the f*ck Python with friends?**
2372+
## Want to share wtfPython with friends?
23292373
23302374
[Twitter](https://twitter.com/intent/tweet?url=https://github.com/satwikkansal/wtfpython&hastags=python,wtfpython) |
23312375
[Linkedin](https://www.linkedin.com/shareArticle?url=https://github.com/satwikkansal&title=What%20the%20f*ck%20Python!&summary=An%20interesting%20collection%20of%20subtle%20and%20tricky%20Python%20snippets.)

0 commit comments

Comments
 (0)