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
+59-2
Original file line number
Diff line number
Diff line change
@@ -445,15 +445,72 @@ from __future__ import braces
445
445
SyntaxError: not a chance
446
446
```
447
447
448
-
Braces? No way! You better use Javascript instead.
448
+
Braces? No way! If you think that's disappointing, use Java.
449
449
450
450
#### 💡 Explanation:
451
451
+ The `__future__` module is normally used to provide features from future versions of Python. The "future" here is however ironic.
452
452
+ This is an easter egg concerned with the community's feelings on this issue.
453
453
454
454
---
455
455
456
-
### Okay Python, Can you alter gravity?
456
+
### "this" is love :heart:
457
+
458
+
```py
459
+
import this
460
+
```
461
+
462
+
Wait, what's **this**?
463
+
464
+
**Output:**
465
+
```
466
+
The Zen of Python, by Tim Peters
467
+
468
+
Beautiful is better than ugly.
469
+
Explicit is better than implicit.
470
+
Simple is better than complex.
471
+
Complex is better than complicated.
472
+
Flat is better than nested.
473
+
Sparse is better than dense.
474
+
Readability counts.
475
+
Special cases aren't special enough to break the rules.
476
+
Although practicality beats purity.
477
+
Errors should never pass silently.
478
+
Unless explicitly silenced.
479
+
In the face of ambiguity, refuse the temptation to guess.
480
+
There should be one--and preferably only one --obvious way to do it.
481
+
Although that way may not be obvious at first unless you're Dutch.
482
+
Now is better than never.
483
+
Although never is often better than *right* now.
484
+
If the implementation is hard to explain, it's a bad idea.
485
+
If the implementation is easy to explain, it may be a good idea.
486
+
Namespaces are one honking great idea -- let's do more of those!
487
+
```
488
+
489
+
It's the Zen of Python!
490
+
491
+
```py
492
+
>>>love= this
493
+
>>> this is love
494
+
True
495
+
>>> love isTrue
496
+
False
497
+
>>> love isFalse
498
+
False
499
+
>>> love isnotTrueorFalse
500
+
True
501
+
>>> love isnotTrueorFalse; love is love # Love is complicated
502
+
True
503
+
```
504
+
505
+
#### 💡 Explanation:
506
+
507
+
*`this` module in Python is an easter egg for The Zen Of Python ([PEP20](https://www.python.org/dev/peps/pep-0020)).
508
+
* And if you think that's already interesting enough, check out the implementation of [this.py](https://hg.python.org/cpython/file/c3896275c0f6/Lib/this.py). Interestingly, the code for the Zen violates itself (and that's probably the only place where this happens).
509
+
* Regarding the statement `love isnotTrueorFalse; love is love`, ironic, but it's self-explanatory.
0 commit comments