-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-33652: Improve pickle support in the typing module. #7123
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
Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions.
ilevkivskyi
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.
LGTM! I don't see any problems with this implementation. Only one concern is operator module loading time. People complained that typing slows down application startup, and operator is not that often imported nowadays. Did you make any measurements of import time with this PR?
|
The import time of |
ilevkivskyi
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.
but it is imported by collections in any case, and therefore this PR doesn't affect the import time.
Ah, OK then!
|
I'm OK with merging this for 3.7 if @ilevkivskyi and/or @gvanrossum are/is. |
|
I am fine with backporting this to 3.7. |
|
Yes, fine with me to for the backport. |
|
Thanks @serhiy-storchaka for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
|
GH-7132 is a backport of this pull request to the 3.7 branch. |
Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions. (cherry picked from commit 09f3221) Co-authored-by: Serhiy Storchaka <[email protected]>
Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions. (cherry picked from commit 09f3221) Co-authored-by: Serhiy Storchaka <[email protected]>
Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions.
https://bugs.python.org/issue33652