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.

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

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.

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

Reply via email to