Noddy with submodules?

Torsten Mohr tmohr at s.netic.de
Mon Sep 7 17:55:11 EDT 2009


Hi,

i want to write a Python module that interfaces a DLL that we use in the 
office to do some measurement.

So i'd like to write a python module in C (which i did before some times).

But i'm not sure how i can create a module in a way that i can later do:

import measurement
import measurement.adc
import measurement.adc.channels
import measurement.pwm

What do i need to do to create submodules within the initialisation code
of a python module written in C?

Maybe there is an example based on "noddy"?


Thanks for any hints,
Torsten.





More information about the Python-list mailing list