-
Notifications
You must be signed in to change notification settings - Fork 181
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
Upgrade to Python 3.12 #3982
Comments
When 3.12 was deployed to production on December 4th, 2024 with 2024.11.21, we saw the time to process an email increase from about 1-2 seconds to 3 - 3.5 seconds. This resulted in a backlog of emails during peak times (U.S.A business hours), and a delay of up to an hour to forward an email. We reverted to Python 3.11 with 2024.11.21.1. We'll add more metrics so that we can test email processing time on the staging instance and determine why 3.12 was such as significant slowdown. |
Python 3.12.0 was released October 2, 2023.
We'll want to upgrade to Python 3.11 first (issue #2731)(done), then ensure our dependencies work with 3.12.New features
Type annotations
Deprecations
wstr
andwstr_length
members of the C implementation of unicode objects were removed, per PEP 623.unittest
module, a number of long deprecated methods and classes were removed. (They had been deprecated since Python 3.1 or 3.2).smtpd
anddistutils
modules have been removed (see PEP 594 and PEP 632. Thesetuptools
package continues to provide the distutils module.SyntaxWarning
instead ofDeprecationWarning
, making them more visible. (They will become syntax errors in the future.)For more details on the changes to Python 3.12, see What's new in Python 3.12.
The text was updated successfully, but these errors were encountered: