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
some absolute imports in the rings folder #20629
Comments
Branch: public/20629 |
Commit: |
New commits:
|
comment:2
Do we really need this in
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
Style issue: better use
instead of
|
comment:5
Question: why do you only consider Python ( |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
Replying to @jdemeyer:
oh, I just made a grep restricted to py files. Anyway, this is only a very partial change. |
comment:8
positive_review if this passes buildbot testing |
Reviewer: Jeroen Demeyer |
comment:9
Hum, it seems that there is a problem with the correct python3 syntax
when the module Is there some cython expert in the neighborhood ? |
comment:10
I don't know if it's really a Cython problem. |
comment:11
maybe a circular dependency ? |
comment:12
It seems that this involves some kind of circular import hell. |
comment:13
Probably, although it's not clear why something would fail as relative import but not as normal import... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
After a long battling against the import hell in the rings folder, I think I have now a working branch. Review, please ! |
comment:23
One of the reasons why you might have started to see the import hell is that you imported a few things directly from the modules, rather than importing the entire module. In order to do the former, Python needs to evaluate the module at the moment you call the |
comment:24
Hmm, not sure I understand your conclusion. Did I do something "wrong" ? Should we try to use I just started wanting to convert to python3-compatible imports, and then had to resolve |
comment:25
Replying to @fchapoton:
Well...there's my diagnosis of what might have caused the problem, and the "pythonic" treatment. However, I disagree with it being the best way to fix things.
I think you did the right thing. Moreover, this is in agreement with what we normally do in Sage. Does that clarify things? |
comment:26
ping ? |
comment:27
ping ? |
Changed reviewer from Jeroen Demeyer to Jeroen Demeyer, Travis Scrimshaw |
Changed keywords from none to days74 |
comment:29
Sage doesn't start with patch
|
comment:30
I do not see this. And two bots were green. Maybe a conflict with another ticket ? |
comment:31
I moved the working part of this branch to #20785. That reduces the problematic part, which can then be investigated more easily. |
comment:32
I suggest to wait until #20785 is merged and then look at this again. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:36
bot is green ! ping ? |
Changed branch from public/20629 to |
Changed commit from |
comment:39
Hah, wish I had seen this ticket earlier. I hit this the other day and thought it was just me. Thanks! |
convert some of the files in the rings folder to absolute import.
a small step towards py3
This involved untangling (partly) the import-hell in the rings folder.
CC: @jdemeyer @embray @tscrim
Component: python3
Keywords: days74
Author: Frédéric Chapoton
Branch:
5be6969
Reviewer: Jeroen Demeyer, Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/20629
The text was updated successfully, but these errors were encountered: