cython3: Cannot start!
Paulo da Silva
p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Mon Dec 24 12:13:04 EST 2018
Às 14:07 de 24/12/18, Stefan Behnel escreveu:
> Paulo da Silva schrieb am 22.12.18 um 19:26:
> Ubuntu 18.04 ships Cython 0.26, which has a funny bug that you hit above.
> It switches the language-level too late, so that the first token (or word)
> in the file is parsed with Py2 syntax. In your case, that's the print
> statement, which is really parsed as (Py2) statement here, not as (Py3)
> function. In normal cases, the language level does not matter for the first
> statement in the source (because, why would you have a print() there?), so
> it took us a while to find this bug.
> pip-installing Cython will get you the latest release, where this bug is
Thank you Stefan for the clarification.
More information about the Python-list