I am aware of the sys module and I can easily access the thread state I need using sys. However I would like to create a new module which does some of the things that are done in sys but specific to my needs.
So my question is: do modules (if they are written in C with python bindings) have any access to cpython state? Is there a way I can call something like:
From an external C module?