# Bug report ### Bug description: I've started [putting a branch together](https://github.com/costasgambit/cpython/tree/costas--py3.12-datetime) that moves all the global state into a module-level state object. If that looks useful, I'll continue to work on it and can rebase on main. It passes tests and "works on my machine". I haven't looked at python internals in some time, so apologies if I'm a little rusty! ### CPython versions tested on: 3.12, CPython main branch ### Operating systems tested on: Linux <!-- gh-linked-prs --> ### Linked PRs * gh-110420 <!-- /gh-linked-prs -->