[C++-sig] Multiple modules in a file

Roman Yakovenko roman.yakovenko at gmail.com
Tue Nov 28 13:48:59 CET 2006


On 11/28/06, David Sveningsson <ext at sidvind.com> wrote:
> Hi, I am quite new at extending python with c++. I am using the boost
> libraries on gnu/linux. I have many classes (with inheritance) that I
> would like to expose to python. Is there some way to have many python
> modules in one file?

I don't think so. I think you can achieve the desired effect using Python API.

May be you should take a look on "Creating Packages" tutorial.
( http://boost.org/libs/python/doc/tutorial/doc/html/python/techniques.html#python.creating_packages
)

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list