[C++-sig] BPL and Py_Clear()

Niall Douglas s_sourceforge at nedprod.com
Thu Jun 16 21:52:05 CEST 2005


On 15 Jun 2005 at 17:15, Stefan Seefeld wrote:

> > I'm simply saying that there are some kinds of virtual function
> > which can't be wrapped easily in BPL ie; those functions which
> > expect a specific pointer rather then a pointer. BPL doesn't handle
> > void * at all well when it seems naturally an obvious automatic
> > opaque pointer. I guess I just don't see why this is the case.
> 
> Python is strongly typed, and there is no such thing as 'anything' in
> python. If you want a special datatype, you should define it (together
> with some wrapper functions to prevent the compiler from having to
> second-guess).

No but python can understand opaque types. This is enough in many 
cases where python gets a void * and must pass that void * to some 
C++.

Cheers,
Niall






More information about the Cplusplus-sig mailing list