You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47-3
Original file line number
Diff line number
Diff line change
@@ -556,6 +556,50 @@ Freedom!
556
556
557
557
---
558
558
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 is10⁵ x π.
599
+
- Interestingly, hash of `float('-inf')`is"-10⁵ x π"in Python 3, whereas "-10⁵ x e"in Python 2.
600
+
601
+
---
602
+
559
603
### Strings can be tricky sometimes
560
604
561
605
1\.
@@ -2320,12 +2364,12 @@ The idea and design for this collection are inspired by Denys Dovhan's awesome p
2320
2364
2321
2365
# Help
2322
2366
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!
2324
2368
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).
2325
2370
2326
-
Thanks a ton for reading this project, I hope you enjoyed it and found it informative!
2327
2371
2328
-
**Want to share What the f*ck Python with friends?**
0 commit comments