[Cython] char* and NULL in log statements

Johannes Wienke languitar at semipol.de
Wed Jun 4 22:45:12 CEST 2008


Hi,

Am 06/04/2008 10:08 PM schrieb Lisandro Dalcin:
> In short, would it make sense to generate ValueError for  the char* ->
> str conversion? Honestly, the performance issues are going to be
> really small.

Just take a look at my reply to Stefan. In summary: ValueError to my
mind is hard to use as I can do a lot of stuff with None in Python. I
don't think that's an error case. In C, NULL is a special case exactly
as None is in python. So why not use None?

- 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/20080604/6204b919/attachment.pgp 


More information about the Cython-dev mailing list