bpo-33652: Improve pickle support in the typing module.#7123
bpo-33652: Improve pickle support in the typing module.#7123ilevkivskyi merged 1 commit intopython:masterfrom
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?
|
The import time of |
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!
|
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 <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