Skip to content

Move PyDateTime_IMPORT inside Py_mod_exec slot#9580

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:setup_module
Jun 19, 2026
Merged

Move PyDateTime_IMPORT inside Py_mod_exec slot#9580
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:setup_module

Conversation

@radarhere

@radarhere radarhere commented Apr 22, 2026

Copy link
Copy Markdown
Member

Follow up to #8983

https://docs.python.org/3/c-api/datetime.html

the macro PyDateTime_IMPORT must be invoked, usually as part of the module initialisation function.

https://peps.python.org/pep-0489/

The Py_mod_exec slot
...
It will be called to initialize a module.

@radarhere radarhere changed the title Move PyDateTime_IMPORT inside setup_module Move PyDateTime_IMPORT inside Py_mod_exec slot Jun 19, 2026
@radarhere radarhere merged commit fca36ba into python-pillow:main Jun 19, 2026
55 checks passed
@radarhere radarhere deleted the setup_module branch June 19, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant