-
Notifications
You must be signed in to change notification settings - Fork 246
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
Teleport functions' keyword-only argument defaults #422
Teleport functions' keyword-only argument defaults #422
Conversation
Remove unused imports & remove Py2 notation from names
Ran teleportation tests on Python 3.6, 3.8 |
Everything looks pretty good. I'll probably make some minor changes like reducing some accidental complexity I found---
Thank you for the contribution! |
Hmm you're right, I forgot
I was referring to cross RPyC versions, not cross CPython; Because now I guess it can be easily solved by expecting this
Thanks for the quick review and merge :) |
I released RPyC 5.0.0 today. Per semantic versioning users should expect breaks in backwards compatibility. Of course, I'll add a note in the release description regarding teleport function not being backwards compatibility. Thank you for your work and explanation! |
Adds support for teleportation of function defaults of the type
def f(*, b=5)
(keyword-only argument defaults)Note that the new code I included is not Python 2 compatible. I thought it's okay to do saw because I noticed you have dropped Python 2 support (7afaec2).
Also - this breaks teleportation compatibility across different RPyC versions. Is this a feature we try to maintain? If so, I can see how to add such support.