Skip to content

Commit

Permalink
Let's meet Friendly Language Uncle For Life: Add notes for non-intera…
Browse files Browse the repository at this point in the history
…ctive evn

Resolves satwikkansal/wtfpython#94
  • Loading branch information
satwikkansal committed Jun 8, 2019
1 parent 36f61e4 commit caa99ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"'))
```

---

Expand Down

0 comments on commit caa99ac

Please sign in to comment.