-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
fixing datetime_strptime when restart cpython #118242
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
base: main
Are you sure you want to change the base?
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
PyObject *string, *format; | ||
_Py_Identifier(_strptime_datetime); |
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 explain why that is needed and what issue you are trying to solve?
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.
It is probably attempting to ensure that the _strptime_datetime
identifier is properly resolved and available after CPython restarts. This might involve ensuring that the necessary module containing _strptime_datetime
is imported and initialized correctly.
So basically the issue that I was trying to solve was problems related to the datetime_strptime
function in CPython when the interpreter is restarted.
Is this a fix for #117914? |
The following commit authors need to sign the Contributor License Agreement: |
📚 Documentation preview 📚: https://cpython-previews--118242.org.readthedocs.build/