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
py3 error in graphs #23823
Comments
comment:2
This comes from the lines
that try to make a dictionary where keys are instancemethods. |
comment:3
Trying to fix that, one meets a strange phenomenon in
namely, there is just one line that is
everybody else is an unbound method. |
Commit: |
New commits:
|
Branch: u/chapoton/23823 |
comment:5
I think it understand what makes that special: it is a "method" defined in a pyx file whereas the others are all py files. So it is behaving a little differently. |
comment:8
I am also very unsure about using |
comment:10
Replying to @tscrim:
Several of these methods are defined in .pyx files: |
comment:11
I think you should be able to just write |
comment:13
This is now my blocking point in the experimental python3 build. |
Reviewer: David Coudert |
comment:14
On my side, the patch passes tests, the html doc builds properly and it displays nicely in my browser. But I'm not using py3. What else should we do to finalize the review ? Actually, this patch is still in |
comment:15
Well, there are two problems:
|
comment:16
Other methods are at the same place. |
comment:18
Maybe we could validate this as a first approximation, and keep python3-full-support for another ticket ? |
comment:20
[Edit: sorry wrong ticket!] |
Changed reviewer from David Coudert to David Coudert, Travis Scrimshaw |
comment:21
IMO, I don't like Python3's behavior with this, but nothing we can do about that. I think this is an acceptable way forward, and we can always revisit this later. |
Author: Frédéric Chapoton |
comment:22
This is a bit strange--I don't think this is really a "Python 3" behavior per se. But I think the change makes sense if nothing else because it avoids the issue of whether or not the attributes that are keyed on are hashable types which, depending on implementation, they aren't necessarily. |
Changed branch from u/chapoton/23823 to |
comment:24
This needs a follow-up ticket, as the line
is one of the last 2 points preventing sage to start with python3 on my machine. EDIT: @embray, did you fix this in your branch, and if yes, how ?? |
Changed commit from |
comment:25
follow up in #24728 |
Using a python3 build, one gets
CC: @embray @jdemeyer @tscrim @kiwifb
Component: python3
Author: Frédéric Chapoton
Branch:
5aa384a
Reviewer: David Coudert, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/23823
The text was updated successfully, but these errors were encountered: