[Cython] Cython 0.29 – or 29.0 ?
Stefan Behnel
stefan_ml at behnel.de
Sun Aug 19 02:26:04 EDT 2018
Am 18. August 2018 21:11:14 MESZ schrieb Jeroen Demeyer:
>>> Basically I am asking for
>>>
>>> type("foo") is str
>>>
>>> both on Python 2 and Python 3.
>>
>> That's another breaking change
>
>I'm not following here... what I'm asking is how Cython behaves
>currently (with language_level=2).
But only for one specific feature. The combination of features that you want does not exist yet. And enabling it for language_level=3 would break existing Py3 code. Meaning, we'd need a new setting here to make this non-breaking, but in any case, we'd create a new language subset that code would have to be adapted to.
You removed the part where I said that I consider it a reasonable request, and I think this would help users to make a migration step towards Py3, while continuing to support Py2 as long as necessary. Should we make that a new directive rather than a language level? Like "py2_str=str"? That would allow its use together with language_level=3 already in the next release.
Stefan
More information about the cython-devel
mailing list