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

Stefan Seefeld seefeld at sympatico.ca
Wed Jun 15 23:15:49 CEST 2005


Niall Douglas 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).

Regards,
		Stefan



More information about the Cplusplus-sig mailing list