-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
LaurentPolynomial_mpair.__init__ modifies input #22398
Comments
Commit: |
Branch: public/ticket/22398 |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Daniel Krenn |
comment:5
The correct solution is to not modify the input data (instead of working around the fact that the input data is modified). It would be good to add an explicit doctest showing that the input is not modified. Something like
|
comment:6
Replying to @jdemeyer:
I completely agree. I'll adapt the patch during the day (once my 7.6.beta4 has recompiled again...). |
comment:8
Replying to @jdemeyer:
Done. Needs_review (...and let's see what the patchbot says). |
comment:9
In the doctests, you can simplify code of the form
by
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Replying to @jdemeyer:
Oh, indeed :) ...done. |
Reviewer: Jeroen Demeyer |
comment:12
If tests pass, you can set this to positive_review. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from public/ticket/22398 to |
…git://trac.sagemath.org/sage into t/22067/gf-polyhedron * 'public/polynomials/laurent_mpoly_constructor-21976' of git://trac.sagemath.org/sage: (709 commits) Some reviewer changes. Updated SageMath version to 7.6.beta5 py3: remove usage of `_richcmp` in complex fields a few conversions from _cmp_ to _richcmp_ Trac sagemath#22404: forgotten change in doctest Allow custom CXXFLAGS for pynac Mark surf as experimental List surf dependencies, do not build by default some doc cleanup in ell_rational_field and 2 neighbor files Trac sagemath#22398: py3: fix <type 'tuple'> trac 21592 some missing accents Clean up pynac interface py3 compatibility Trac sagemath#22404: add blanks after commas (except for tuples representing exponents) in polydict Improvements and some cleanup to ETuple. Trac sagemath#22396: mention Trac ticket in Tests Trac sagemath#22392: Mention Trac Ticket in Tests Trac sagemath#22402: PEP8: fix trailing whitespace Trac sagemath#22398: simplify id(...) = id(...) in doctest Trac sagemath#22398: doctest non-modifying input ...
Creating mutlivariate Laurent polynomials from other mutlivariate Laurent polynomials sometimes fails.
Apparently this is due to the fact that
LaurentPolynomial_mpair.__init__
changes the keys of the input dictionary.CC: @dkrenn
Component: algebra
Author: Daniel Krenn
Branch/Commit:
b56984c
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/22398
The text was updated successfully, but these errors were encountered: