Dag Sverre Seljebotn | 29 Jun 18:29
Picon
Picon

[Cython] [Fwd: Re: Surprise: A bool isn't a bool]


-------- Original Message --------
Subject: Re: Surprise: A bool isn't a bool
Date: Mon, 29 Jun 2009 18:26:58 +0200
From: Bjarke Roune <bjarke@...>
To: Dag Sverre Seljebotn <dagss@...>
References:
<mailman.42053.1246289710.27370.cython-dev@...> 
  <4f74ca650906290836t4c2a6f27i45b5b436abe4951c@...>	 
<4A48E772.8030603@...>

> 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

Gmane