New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile Sage with Cython language_level=3str #26403
Comments
comment:1
I am still confused by the whole language_level discussion. I tried following the discussion on the cython mailing list but I gave up. If I understand correctly (and this is probably just restating what you wrote in the ticket description) |
comment:2
Regarding your deleted comment from the other ticket (maybe it was meant for this one) about non-ASCII strings in string literals (there was an example you used with μ). If a docstring contains non-ASCII characters then I definitely think we should be explicitly using |
comment:3
Replying to @embray:
It's not only about string literals. With
|
comment:4
Replying to @embray:
On the other hand, I do consider it a bug that Cython disallows |
comment:5
Replying to @jdemeyer:
Sure it's technically valid on Python 2, but not a great practice in most cases either, and with the different meaning there's a lot of potential for confusion around it so I think they're right to disallow it (even if it's unintentionally disallowed). But I also see your point. |
comment:6
Replying to @jdemeyer:
Ok, sure. But "3str" means |
comment:7
Replying to @embray:
Yes, |
Commit: |
comment:16
Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually) |
comment:17
red branch |
comment:18
I know, but it's not ready for review anyway. This needs to wait for Cython 3.0 |
comment:26
Three patchbots seems to be happy, both with py2 and py3. Erik, would you approve a positive review ? |
comment:27
Could please somebody else approve ? Or should I set to positive all by myself ? |
Reviewer: Frédéric Chapoton |
comment:28
In the absence of any reaction whatsoever, I am setting to positive. |
comment:29
merge conflict... |
comment:30
Replying to @fchapoton:
Yeah why shouldn't you? You reviewed the change and tested it, didn't you? You don't need me to do that. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:32
conflicts resolved, setting back to positive |
comment:33
I'm getting the following failure on 32-bit:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:35
ok, fixed |
Changed branch from public/ticket/26403 to |
Cython 0.29 introduces a new
language_level=3str
, which is likelanguage_level=3
except that strings are stillstr
instead ofunicode
. It would be good to use this language_level in Sage to force Python 3 syntax in all Cython files.CC: @embray @fchapoton
Component: cython
Author: Jeroen Demeyer
Branch/Commit:
58a30a8
Reviewer: Frédéric Chapoton
Issue created by migration from https://trac.sagemath.org/ticket/26403
The text was updated successfully, but these errors were encountered: