The ndarray base object is only set, when the pointer is non-null and is not pointing to None. Also added a member function CallPolicy for setting the returned ndarrays's base object automatically to the class instance and making sure it is alive as long as the returned ndarray is alive.