-
Notifications
You must be signed in to change notification settings - Fork 184
adapt to Python3.8 with PEP570 #267
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
.... please update also vendored joblib
Codecov Report
@@ Coverage Diff @@
## master #267 +/- ##
=========================================
- Coverage 88.22% 87.9% -0.32%
=========================================
Files 1 1
Lines 552 554 +2
Branches 112 113 +1
=========================================
Hits 487 487
- Misses 42 43 +1
- Partials 23 24 +1
Continue to review full report at Codecov.
|
|
if you want to be more precise, test should be "if sys.version_info > (3, 8, 0, 'alpha', 3):" |
ogrisel
left a comment
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.
This LGTM. I am not sure we really need to distinguish alpha releases though. Maybe sys.version_info >= (3, 8) is enough.
Any opinion on this change @pierreglaser?
| (), | ||
| ) | ||
|
|
||
| if sys.version_info > (3, 8, 0, 'alpha', 3): |
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.
maybe hasattr(types.CodeType, "co_posonlyargcount")?
|
This whole part of the code is only useful for versions of python before PEP 3104. For recent python version (python3?), |
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.
Can you add a test with a function that uses positional only arguments? You also need to change the reducer of code object (Would we have a CI against python 3.8.0.a4, I think every test involving code objects would have failed)
|
Closing in favor of #269. |
.... please update also vendored joblib