Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let's meet Friendly Language Uncle For Life #94

Closed
true1023 opened this issue Sep 1, 2018 · 3 comments
Closed

Let's meet Friendly Language Uncle For Life #94

true1023 opened this issue Sep 1, 2018 · 3 comments
Milestone

Comments

@true1023
Copy link

true1023 commented Sep 1, 2018

The example worked in interpreter but not when I write in a .py file.

from __future__ import barry_as_FLUFL
import sys
print(sys.version)
"Ruby" != "Python" #This is OK
from __future__ import barry_as_FLUFL
import sys
print(sys.version)
"Ruby" <> "Python" #But this  raise a exception

output 1:

3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]

output 2:

  File "test.py", line 4
    "Ruby" <> "Python"
            ^
SyntaxError: invalid syntax
@Shwetago
Copy link

Shwetago commented Dec 5, 2018

The second one worked for me but the first one doesn't.
I have used IDLE (Python 3.6.5)
@true1023

@satwikkansal
Copy link
Owner

@true1023 Thanks for reporting this. Seems like this will only work in non-interactive environment. I'll figure out the reason why, and update it in the readme.

@satwikkansal satwikkansal added this to the 3.0 milestone Jun 6, 2019
@satwikkansal
Copy link
Owner

I've added the explanation in the project. You can check the above commit and let me know if something's incorrect or missing :)

muscliary pushed a commit to muscliary/wtfpython that referenced this issue Sep 12, 2023
muscliary pushed a commit to muscliary/wtfpython that referenced this issue Sep 12, 2023
tothetop430 added a commit to tothetop430/wtfpython that referenced this issue Dec 9, 2023
tothetop430 added a commit to tothetop430/wtfpython that referenced this issue Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants