boost::python, returning new PyObject references

Barry Scott barry at scottb.demon.co.uk
Wed Jan 9 11:38:22 CET 2002


> > PyCXX does 1 for all the reasons that Guido outlined.
> 
> Is the documentation out-of-date? It (cxx.sourceforge.net) says:

Incomplete, but up to date.

I assumed that all this slots talk was for extensions. Now I see what you are solving:

Pre 2.2 using the Python predicate tests is workable to detect a dict or list. But with
2.2 allowing objects to be partially like a list its very hard to do a simplistic wrap
of a PyObject* into a C++ object that reliably works. In fact this can be a problem before
2.2, but not with the builtin types.

I'll re-read the thread and see if I have anything new to say.

		BArry




More information about the Cplusplus-sig mailing list