[C++-sig] Creating a python class from c++

Stefan Seefeld seefeld at sympatico.ca
Wed Nov 15 19:42:21 CET 2006


Stefan Seefeld wrote:
> James Healey wrote:
>> PyFile_AsFile returns a ptr to a file object so that's
>> working as it should.
>>
>> And how do i check the exception?
>>
>> Do i need to do any thing with the dict that gets
>> passed into exec_file?
> 
> No. If the PyFile_AsFile call returns NULL you know
> something is wrong, and an exception is set (i.e.

I meant PyRun_File here. Sorry for the confusion.

Regards,
		Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list