[Cython] Preparing the language level change - Re: [cython-users] Cython 0.29 beta 1 released
Daniele Nicolodi
daniele at grinta.net
Mon Sep 24 18:28:45 EDT 2018
On 24-09-2018 14:05, Stefan Behnel wrote:
> I added a new directive "str_is_str=True" which can be combined with
> "language_level=3" to get the desired behaviour. It keeps the 'str' builtin
> type as it is (it would otherwise become 'unicode' with level 3) and keeps
> unprefixed string literals as type 'str' in Py2 and Py3. Everything else
> should depend solely on the language_level switch.
For consistency with the CPython
from __future__ import unicode_literals
wouldn't it be better to call this directive "str_literals"?
I realize there isn't 100% overlap in the functionality of the two, but
I find the "str_is_str" name not very descriptive.
Thanks. Cheers,
Dan
More information about the cython-devel
mailing list