From a33f715b2620e60d1ae2a15c998e907e8d5e4d17 Mon Sep 17 00:00:00 2001 From: Satwik Kansal Date: Sat, 8 Jun 2019 14:49:59 +0530 Subject: [PATCH] Let's meet Friendly Language Uncle For Life: Add notes for non-interactive evn Resolves https://github.com/satwikkansal/wtfpython/issues/94 --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2947bb7..dc6fd7f 100644 --- a/README.md +++ b/README.md @@ -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"')) + ``` ---