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

Maintain compatibility of code-tuples between Python versions 3 < .. < 3.7 and > 3.8 #371

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

Jongy
Copy link
Contributor

@Jongy Jongy commented Jan 29, 2020

Enables teleportation between e.g Python 3.7 and Python 3.8.
Of course the changed opcodes pose a problem too, but in many cases it just works.

Closes: #370.

I have tested:

  • test_teleportation.py runs by 3.8, connects to 3.8 server.
  • test_teleportation.py runs by 3.8, connects to 3.7 server.
  • test_teleportation.py runs by 3.7, connects to 3.8 server.
  • test_teleportation.py runs by 3.7, connects to 3.7 server.
  • 3.8 client which sends def f(n, /): return n + 1 to 3.7 server. The teleported function doesn't respect positional-only arguments (as expected): you can call teleported_f(n=1) but can't call f(n=1).

@comrumino do you want me to add the cross-version testing somehow? I'm not sure how to do it (I don't know how your CI runs. Do I have many versions of Python installed? Do all of them have rpyc installed?)

…< 3.7 and > 3.8

Enables teleportation between e.g Python 3.7 and Python 3.8.
Of course the changed opcodes pose a problem too, but in many cases it just works.

Closes: tomerfiliba-org#370.
@comrumino comrumino merged commit 8cf49b4 into tomerfiliba-org:master Jan 30, 2020
@Jongy Jongy deleted the teleportation-compat-3-3.8 branch March 3, 2020 23:11
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.

Function teleportation across Python versions
2 participants