Boost logo

Boost :

From: Karl Bellve (Karl.Bellve_at_[hidden])
Date: 2001-03-28 15:11:30

Thanks David...

I sorted that issue out. GetT is now being properly called but a new
instance of the class is being loaded, instead of using the instance of
the class that initialized Python and called its own init function.

So, I am back to the issue of bringing into Python an preexisting
instance of a class and not constructing a new instance of a class. I am
using the BOOST_PYTHON_BEGIN_CONVERSION_NAMESPACE and I am reading up on
it. I am also looking at the sources to "getting_started5" since it also
uses that as well.

David Abrahams wrote:
> ----- Original Message -----
> From: "Karl Bellve" <Karl.Bellve_at_[hidden]>
> To: <boost_at_[hidden]>
> Sent: Wednesday, March 28, 2001 1:31 PM
> Subject: [boost] C++ Functions not being called from Python....
> >
> > From the partial code below, my module is loaded by Python (statically
> > linked in my app, as well as BPL). But, it fails when it tries to find
> > the function "GetT" using the call PyDict_GetItemString.
> That's because GetT is not an attribute of the module imagemangager, but of
> the class imagemanager.CImageManager.

Karl Bellve, Ph.D.                   ICQ # 13956200
Biomedical Imaging Group             TLCA# 7938 		
University of Massachusetts
Email: Karl.Bellve_at_[hidden]
Phone: (508) 856-6514
Fax:   (508) 856-1840
PGP Public key: finger kdb_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at