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

Niall Douglas s_sourceforge at nedprod.com
Mon Jun 13 18:30:49 CEST 2005


On 13 Jun 2005 at 8:40, David Abrahams wrote:

> >> > Why doesn't BPL's ptr() accept pointers to integral types?
> >> 
> >> Think about how you would implement such a thing.  What would a an
> >> overriden virtual function written in Python see?
> >
> > A single item of whatever type eg; long * would mean the python code
> > sees a python integer.
> 
> I'm confused now.  If you pass an int* without wrapping it in ptr()
> that's exactly what happens, right?

I don't know about int, but unsigned int * yields a runtime error of 
no to-python converter for unsigned int.

Cheers,
Niall






More information about the Cplusplus-sig mailing list