[Cython] assert statements in Cython

Johannes Wienke jwienke at techfak.uni-bielefeld.de
Sat Jun 14 11:53:40 CEST 2008


Am 06/13/2008 08:14 PM schrieb Stefan Behnel:
> Johannes Wienke wrote:
>> is there anything special about using assert statements in Cython? I've
>> noticed that something like assert foo != NULL results in returning
>> None, if the method containing this statement really gets foo containing
>> NULL.
> 
> Would you have some example code?

Well, can't reproduce it. :\ Maybe I forgot an except clause and didn't
see the warning about the ignored exception or something like that.

Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080614/38cb3aee/attachment.pgp 


More information about the Cython-dev mailing list