mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-11-25 20:44:24 +01:00
Let's meet Friendly Language Uncle For Life: Add notes for non-interactive evn
Resolves https://github.com/satwikkansal/wtfpython/issues/94
This commit is contained in:
parent
c52919b9ec
commit
a33f715b26
7
README.md
vendored
7
README.md
vendored
@ -2071,7 +2071,7 @@ Braces? No way! If you think that's disappointing, use Java.
|
||||
|
||||
---
|
||||
|
||||
### ▶ Let's meet Friendly Language Uncle For Life *
|
||||
### ▶ Let's meet Friendly Language Uncle For Life ^
|
||||
|
||||
**Output (Python 3.x)**
|
||||
```py
|
||||
@ -2094,6 +2094,11 @@ There we go.
|
||||
|
||||
> 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.
|
||||
- There were more things that Uncle Barry had to share in the PEP; you can read them [here](https://www.python.org/dev/peps/pep-0401/).
|
||||
- It works well on interactive environment, but it will raise a `SyntaxError` when you run via python file (see this [issue](https://github.com/satwikkansal/wtfpython/issues/94)). However, you can wrap the statement inside an `eval` or `compile` to get it working,
|
||||
```py
|
||||
from __future__ import barry_as_FLUFL
|
||||
print(eval('"Ruby" <> "Python"'))
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user