The CPython implementation seems to have the same modules written both in C (e.g., datetime
in .c
) and also in .py for the same module (e.g., datetime
in .py
).
My question is which version is used when I use datetime in my .py file when using the CPython interpreter? And why are there two module versions in the first place?