bpo-33652: Improve pickle support in the typing module.#7123
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.
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?
Sorry, something went wrong.
|
The import time of |
Sorry, something went wrong.
ilevkivskyi
left a comment
There was a problem hiding this comment.
but it is imported by collections in any case, and therefore this PR doesn't affect the import time.
Ah, OK then!
Sorry, something went wrong.
|
I'm OK with merging this for 3.7 if @ilevkivskyi and/or @gvanrossum are/is. |
Sorry, something went wrong.
|
I am fine with backporting this to 3.7. |
Sorry, something went wrong.
|
Yes, fine with me to for the backport. |
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR, and @ilevkivskyi for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, something went wrong.
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 <storchaka@gmail.com>
Pickles of type variables and subscripted generics are now future-proof and compatible with older Python versions.
https://bugs.python.org/issue33652