gh-71587: Isolate _datetime#102995
Conversation
|
Observations:
|
Sorry, something went wrong.
|
@ericsnowcurrently, regarding the datetime C API: Currently, the encapsulated datetime C API is exposed as a global variable: Lines 196 to 197 in e375bff I guess we could move this to the interpreter state instead. Thoughts? FTR, if we run the ref leak bots on this PR, they fail because of the datetime C API tests in cpython/Modules/_testcapi/datetime.c Lines 8 to 29 in e375bff |
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
Would it be possible to split the PR into multiple parts? Example:
- PR 1: Add a module state, refer a few static types there, and pass the state to the easy places to retrieve the type
- PR 2: Slowly, convert static types, one by one
- PR 3: Dirty changes
- PR 4: The final beautiful change which just remove the old code
Sorry, something went wrong.
Definitely! |
Sorry, something went wrong.
Co-authored-by: Victor Stinner <vstinner@python.org>
edited by bedevere-bot
LoadingUh oh!
There was an error while loading. Please reload this page.
Copy link Copy MarkdownSorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.