#15321: Function changes behaviour, related to polynomial rings
---------------------------+----------------------------------------------
Reporter: gagern | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: sage-duplicate/invalid/wontfix
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------+----------------------------------------------
Comment (by gagern):
Replying to [comment:2 nbruin]:
> This is not a problem in Sage, but a documented "feature" of Python2.
[…]
> List comprehensions leak their variables, so the value of your global
> variable p […] gets overwritten.
Thanks for clarifying this.
I seem to have a knack for reporting things in the wrong place: I tend to
ask questions on Ask Sage which turn out to be bugs, and now I asked here
about what felt like a sure bug, and it turns out to be “a feature” or at
least not Sage's bug, so it might have been more appropriate to use that
Q&A forum instead.
--
Ticket URL: <http://trac.sagemath.org/ticket/15321#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.