[C++-sig] Returning NULL from C++

Ammar Hakim ahakim777 at yahoo.com
Wed Aug 13 20:43:52 CEST 2003


Hello All,

How do I wrap a C++ function which does something like
this:

struct A {};

A*
get_A()
{
	if(some_condition)
		return NULL;
	else
		return pointer_to_A;
}

I would like the NULL to be converted into a None in
Python.

Cheers,
Ammar

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com




More information about the Cplusplus-sig mailing list