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
_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to