Search found 2 matches
- Thu Jan 16, 2020 4:08 pm
- Forum: General Discussion and Questions
- Topic: Combo of a C and python module?
- Replies: 6
- Views: 3821
Re: Combo of a C and python module?
What I am trying to achieve is: mod/__init__.py - a python module, can be imported as "import mod" submod.c - a user module, should be a submodule of mod, can be imported as "from mod import submod" At the moment I can only get it like this: mod/__init__.py - frozen in the firmware, can be imported ...
- Tue Jan 14, 2020 12:28 am
- Forum: General Discussion and Questions
- Topic: Combo of a C and python module?
- Replies: 6
- Views: 3821
Combo of a C and python module?
I have couple questions about C modules. 1. I am writing a module that contains a highly optimized C code and python wrapper around it. Is it possible to extend a python module with C submodule? At the moment I am using two separate modules in global scope - I have a C module named with an underscor...