On Fri, Apr 24, 2009 at 6:41 PM, Robert Bradshaw
<[email protected]> wrote:
> On Apr 24, 2009, at 1:48 PM, Lisandro Dalcin wrote:
>
>> On Fri, Apr 24, 2009 at 4:27 PM, Robert Bradshaw
>> <[email protected]> wrote:
>>> On Apr 24, 2009, at 8:17 AM, Lisandro Dalcin wrote:
>>
>> Of course, then if �[email protected](True) is used, the code in
>> Shadow should emit a warning, right?
>
> No idea how one would do this...
>

Perhaps something like this (sorry if identation is wrong, still
missing native support for fixed-width fonts when composing mails in
Gmail)

# In Shadow.py
class cdivision:
  def __init__(self, value):
       assert type(value) is bool
       self.value = value
  def __call__(self, function):
       if self.value: warn("C division semantics cannot work on Python code")
       return function



>>
>>>
>>> The other compiler directives should be added as well.
>>>
>>
>> OK, though I likely will not take this...
>>
>>
>> --
>> Lisandro Dalcín
>> ---------------
>> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
>> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
>> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
>> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
>> Tel/Fax: +54-(0)342-451.1594
>> _______________________________________________
>> Cython-dev mailing list
>> [email protected]
>> http://codespeak.net/mailman/listinfo/cython-dev
>
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>



--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to