-------- Original Message --------
Subject: Re: Surprise: A bool isn't a bool
Date: Mon, 29 Jun 2009 18:26:58 +0200
From: Bjarke Roune <[email protected]>
To: Dag Sverre Seljebotn <[email protected]>
References: <[email protected]> 
  <[email protected]>  
<[email protected]>

> Indeed. The question is whether it is possible to find such a way. Perhaps
> disallow "bool" in cdef extern functions? Although that would add an
> unecesarry typecheck if a C library in fact did return a Python boolean
> object... (like many C functions in Python's standard library might).
>
Perhaps let there be a switch to turn the error or warning off, and
some kind of instruction in a Cython file that turns it off for only
that file.

Cheers
Bjarke

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to