-
Notifications
You must be signed in to change notification settings - Fork 46
Make code compatible with Python3 #181
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
Conversation
See CI on the master branch: python 3 is supported and verified. So I don't understand a problem you tries to solve. Say, Please, pay attention to don't break Python 2 code. If I'm too early here, I suggest to mark the PR as draft. |
81b5fd4
to
46c565b
Compare
Yep, code is actually already compatible with Python 3. There are only two places required to fix: print calls and exec call. Please review these two patches. CI is green.
Sure. |
In a Python 3 'print' becomes a function, see [1]. Patch makes print calls compatible with Python 3. 1. https://docs.python.org/3/whatsnew/3.0.html#print-is-a-function
exec was a statement in Python 2.x [1] and it has been converted to a function in Python 3.x [2], change introduced in version 3.0 [3]. 1. https://docs.python.org/2/reference/simple_stmts.html#exec 2. https://docs.python.org/3/library/functions.html#exec 3. https://docs.python.org/3/whatsnew/3.0.html
46c565b
to
7a870fa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Related issues: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
Related issues and changes: - Support Python 3 in Tarantool test suite tarantool/tarantool#5538 - Python 3 in tarantool-python tarantool/tarantool-python#181 tarantool/tarantool-python#186 - Use Python 3 in a test infrastructure tarantool/tarantool#5652 Closes #20
No description provided.