[Cython] 'local variable referenced before assignment' warnings

robert.rex at exasol.com robert.rex at exasol.com
Wed Sep 21 10:20:31 CEST 2011

Hi Robert,

Robert Bradshaw wrote:
> The warning seem correct to me, or is foo actually modifying the
> values of cya and cyb? (I suppose this could be possible by taking the
> address of the "passed by reference" arguments, but would seem like a
> *very* poor API design.)

thanks for your fast answer! What made me came up with this issue is
that GCC/C++ will not complain in similar situations in C++ code (and
assumes foo() to initialize/change the value of cya/cyb). Thus, there
is an (arguable) difference in C++ compiler/Cython warnings.


More information about the cython-devel mailing list