Skip to content

Commit caa99ac

Browse files
committed
Let's meet Friendly Language Uncle For Life: Add notes for non-interactive evn
Resolves satwikkansal/wtfpython#94
1 parent 36f61e4 commit caa99ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -2071,7 +2071,7 @@ Braces? No way! If you think that's disappointing, use Java.
20712071
20722072
---
20732073
2074-
### ▶ Let's meet Friendly Language Uncle For Life *
2074+
### ▶ Let's meet Friendly Language Uncle For Life ^
20752075
20762076
**Output (Python 3.x)**
20772077
```py
@@ -2094,6 +2094,11 @@ There we go.
20942094
20952095
> 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.
20962096
- 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/).
2097+
- 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,
2098+
```py
2099+
from __future__ import barry_as_FLUFL
2100+
print(eval('"Ruby" <> "Python"'))
2101+
```
20972102
20982103
---
20992104

0 commit comments

Comments
 (0)