Boost logo

Boost :

From: daveh-lists_at_[hidden]
Date: 2001-09-09 09:18:01


They are in the Python_sub_modules folder in the files section of
this group (
http://groups.yahoo.com/group/boost/files/Python_sub_module/ )

Dave Hawkes

--- In boost_at_y..., rwgk_at_y... wrote:
> I cannot find the modified files? Could you please help?
> Thanks,
> Ralf
>
> --- In boost_at_y..., daveh-lists_at_c... wrote:
> > Hi,
> >
> > I have written some support in boost for python sub modules.
This
> > means that a single code module can support multiple python
modules.
> >
> > It works like this:
> >
> > .
> > .
> > .
> > python::module_builder this_module("mymodule");
> > python::sub_module_builder mysub_module
(this_module, "mysub");
> > mysub_module.def(mufunc, "myfunc");
> > .
> > .
> > .
> >
> > then in python:
> >
> > import mymodule
> > print mymodule.mysub.myfunc()
> >
> > mysub is treated as 'built-in' module of mymodule
> >
> > So far this has only been tested with MSVC6 SP5
> >
> > I have added the modified boost python files in the files
section
> > for comments?
> >
> > Dave Hawkes


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk