Ticket #7077 (closed defect: fixed)
variables() inconsistently returns a list or tuple
| Reported by: | jason | Owned by: | tbd |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.2 |
| Component: | algebra | Keywords: | |
| Cc: | mhansen | Work issues: | |
| Report Upstream: | Reviewers: | Karl-Dieter Crisman | |
| Authors: | Alex Ghitza | Merged in: | sage-4.2.alpha1 |
| Dependencies: | Stopgaps: |
Description
with 4.1.1:
sage: x,y,z=polygens(QQ,'x,y,z') sage: (x^2).variables() [x] sage: x=polygen(QQ) sage: (x^2).variables() (x,)
Attachments
Change History
comment:1 Changed 4 years ago by AlexGhitza
- Status changed from new to needs_review
- Authors set to Alex Ghitza
There are a number of methods called variables() in the Sage library. The attached patch makes sure that all of them return tuples. (This is what univariate polynomials, and symbolics return.)
Note: See
TracTickets for help on using
tickets.

