-
-
Notifications
You must be signed in to change notification settings - Fork 663
Fix an occurrence of lazy_import #40541
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
Conversation
Documentation preview for this PR (built with commit fc26616; changes) is ready! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as intended on my end (version 10.7.beta9). Thanks for the fix.
I don't have the permission to change labels, someone else will have to do it. |
sagemathgh-40541: Fix an occurrence of lazy_import Previously the following code fails if executed right after Sage starts: ```python P.<x,y,z> = ProjectiveSpace(QQ, 2) C = Curve([(x^2 + y^2 - y*z - 2*z^2)*(y*z - x^2 + 2*z^2)*z + y^5], P) C.ordinary_model() ``` The error is: ```python NotImplementedError: object does not support iteration ``` This pull request fixes it. The reason why it is fixed is explained in the code edit. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40541 Reported by: user202729 Reviewer(s): grnx
sagemathgh-40541: Fix an occurrence of lazy_import Previously the following code fails if executed right after Sage starts: ```python P.<x,y,z> = ProjectiveSpace(QQ, 2) C = Curve([(x^2 + y^2 - y*z - 2*z^2)*(y*z - x^2 + 2*z^2)*z + y^5], P) C.ordinary_model() ``` The error is: ```python NotImplementedError: object does not support iteration ``` This pull request fixes it. The reason why it is fixed is explained in the code edit. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40541 Reported by: user202729 Reviewer(s): grnx
sagemathgh-40541: Fix an occurrence of lazy_import Previously the following code fails if executed right after Sage starts: ```python P.<x,y,z> = ProjectiveSpace(QQ, 2) C = Curve([(x^2 + y^2 - y*z - 2*z^2)*(y*z - x^2 + 2*z^2)*z + y^5], P) C.ordinary_model() ``` The error is: ```python NotImplementedError: object does not support iteration ``` This pull request fixes it. The reason why it is fixed is explained in the code edit. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40541 Reported by: user202729 Reviewer(s): grnx
sagemathgh-40541: Fix an occurrence of lazy_import Previously the following code fails if executed right after Sage starts: ```python P.<x,y,z> = ProjectiveSpace(QQ, 2) C = Curve([(x^2 + y^2 - y*z - 2*z^2)*(y*z - x^2 + 2*z^2)*z + y^5], P) C.ordinary_model() ``` The error is: ```python NotImplementedError: object does not support iteration ``` This pull request fixes it. The reason why it is fixed is explained in the code edit. ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [x] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40541 Reported by: user202729 Reviewer(s): grnx
Previously the following code fails if executed right after Sage starts:
The error is:
This pull request fixes it. The reason why it is fixed is explained in the code edit.
📝 Checklist
⌛ Dependencies