Creating a "package" using C extensions?

Chris Barker chrishbarker at attbi.com
Mon Dec 10 19:33:02 CET 2001


Courageous wrote:

> It's too bad there's not a way to create a package-level .dll
> which responds to Python in such a way as to offer up its
> internal modules, but all from within a single .dll. That would
> be cool.


Gordon McMillan wrote:
> So implement <package>.c as your extension module, and arrange
> for it to have module1, module2 etc. as attributes. Probably a
> dozen or two lines of perfectly kosher code in init<package>.

IF you figure out how to do this, I'd love to see an example. It owuld
be prettyhandy for me as well. Maybe even a cookbook entry?

-Chris


-- 
Christopher Barker,
Ph.D.                                                           
ChrisHBarker at attbi.net                ---           ---           ---
                                     ---@@       -----@@       -----@@
                                   ------@@@     ------@@@     ------@@@
Oil Spill Modeling                ------   @    ------   @   ------   @
Water Resources Engineering       -------      ---------     --------    
Coastal and Fluvial Hydrodynamics --------------------------------------
------------------------------------------------------------------------



More information about the Python-list mailing list