On Sun, Sep 4, 2016 at 8:27 AM, Big Stone <
stone...@gmail.com> wrote:
> If Cython syntax was 100% compatible with Python syntax, current situation
> ("legacy syntax" or "not released syntax) would be considered as a bug.
I'm not quite following what you're saying here--the question would
still be whether to be 100% compatible with Python 2 syntax or 100%
compatible with Python 3 syntax,
> "+1" for this change
>
>
>
>
> On Friday, September 2, 2016 at 9:52:07 AM UTC+2, Stefan Behnel wrote:
>>
>> Hi!
>>
>> Here's a quick poll. Currently, Cython defaults to its Python 2 based
>> syntax everywhere and full Python 3 syntax and semantics have to be
>> enabled
>> with the "language_level=3" directive, or with the "%%cython -3" cell
>> magic
>> in IPython/jupyter notebooks.
>>
>> In the jupyter notebook, however, the Python version, and thus the syntax
>> used in the overall notebook, is determined by the running kernel. If that
>> uses Python 3 syntax for the Python cells, it feels weird to me to require
>> Python 2 syntax in the Cython cells.
>>
>> Would anyone object to making Python 3 syntax the default in Cython cells
>> when using a Python 3 kernel? Do you see any drawbacks?
>>
>> Personally, I doubt that it would break all that much code. And Python 2
>> syntax could still be selected with "%%cython -2" if needed.
>>
>> Stefan
>