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

update print statement for py3+ #49

Merged
merged 1 commit into from
Sep 7, 2020
Merged

Conversation

johannjacobsohn
Copy link
Contributor

No description provided.

@Pezmc
Copy link
Owner

Pezmc commented Aug 4, 2020

What issue were you seeing? This script is supposed to be both 3 & 2 compatible

Does this new format work with both?

@Flowdalic
Copy link

Does this new format work with both?

No it does not work on Python 3: print >> is a Python 2 only idiom. I would recommend that you use 2to3 to update the script to Python 3.

@Pezmc
Copy link
Owner

Pezmc commented Sep 7, 2020

Thanks for confirming, closing as this script is both Python 3 and Python 2 compatible; if Python 3 drops support for this syntax, we'll need to migrate to Python 3 only!

@Pezmc Pezmc closed this Sep 7, 2020
@Flowdalic
Copy link

closing as this script is both Python 3 and Python 2 compatible

I think you misunderstood something. The script, as of now, is not Python 3 compatible, because it uses print >>.

@Pezmc
Copy link
Owner

Pezmc commented Sep 7, 2020

@Flowdalic Good point, I think we're talking past each other, I asked if the new format in the PR is Python 2 compatible, you answered, that it doesn't work in Python 3. Reading back, I was talking about print you were talking about >>!

@Pezmc Pezmc reopened this Sep 7, 2020
@Pezmc Pezmc merged commit bf0aabe into Pezmc:master Sep 7, 2020
@Flowdalic
Copy link

I asked if the new format in the PR is Python 2 compatible, you answered, that it doesn't work in Python 3.

Ha, right. Sorry for the confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants