On Tue, Dec 8, 2009 at 6:32 PM, Greg Ewing <[email protected]> wrote:
> Lisandro Dalcin wrote:
>
>> After much thinking, I'm not sure why Cython (and likely Pyrex) do
>> require a constant expression here... Could we relax this requirement?
>
> Allowing a fully general expression here would be quite
> tricky, as it needs to be evaluable in any context where
> the function is called.
>

Yes, I understand.

> However it might be possible to relax it enough to allow
> an extern variable.
>

That's basically what I'm asking for.

> Are you sure you really need to use this particular value,
> though? If NULL is a valid return value, you can use
> 'except? NULL' (with a question mark) to have an exception
> test generated if the value is NULL.
>

The point is that NULL is not a valid return value, but MPI_COMM_NULL is.


-- 
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