[C++-sig] object().attr_allow_null()

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Mon Jul 22 21:02:26 CEST 2002


--- David Abrahams <david.abrahams at rcn.com> wrote:
> > > Hmmn, I take it back; you ought to be able to pass, e.g. NumPyArray*
> I don't really care all that  much, but:

...
 
>     object(x).is(y) looks OK to me.

I am with you.
Please allow another question for my edification: if x is a NumPyArray* (a
pointer to a PyObject) what will object(x) do? How does it know that
NumPyArray* is already a PyObject? Is it this?
lvalue_from_pytype<extract_identity<NumPyArray>,&NumPyArray>();
Ralf


__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com





More information about the Cplusplus-sig mailing list