[Pyrex] Newbie question

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Dec 15 23:32:45 UTC 2006


Natsagdorj Shagdar wrote:

>     fToOpen = fopen(FileName, "rb")
>     if fToOpen is None:

That should be

       if fToOpen == NULL:

None is a Python object; it is *not* the same as a C null pointer.

>     print ReadFileIntoBuffer(FileName, plSize)
> 
> But it gives an error " cannot assign type 'unsigned long' to 'unsigned long (*)"

should be

       print ReadFileIntoBuffer(FileName, &plSize)

--
Greg



More information about the Pyrex mailing list