Opened 3 years ago

Closed 3 years ago

# py3: bug in Symmetric functions

Reported by: Owned by: chapoton major sage-duplicate/invalid/wontfix python3 tscrim N/A

### Description

in python3:

```sage: S=SymmetricFunctions(QQ)
sage: S([1])
m[1]
```

in python2:

```sage: S=SymmetricFunctions(QQ)
sage: S([1])
p[1]
```

### comment:1 Changed 3 years ago by chapoton

related to #26328

### comment:2 Changed 3 years ago by chapoton

Maybe coming from a different order in python 2

```sage: Sym = SymmetricFunctions(QQ)
sage: Sym._realizations
[Symmetric Functions over Rational Field in the powersum basis,
Symmetric Functions over Rational Field in the monomial basis,
Symmetric Functions over Rational Field in the elementary basis,
Symmetric Functions over Rational Field in the Schur basis,
Symmetric Functions over Rational Field in the homogeneous basis]
```

versus python3:

```sage: Sym = SymmetricFunctions(QQ)
sage: Sym._realizations
[Symmetric Functions over Rational Field in the monomial basis,
Symmetric Functions over Rational Field in the homogeneous basis,
Symmetric Functions over Rational Field in the powersum basis,
Symmetric Functions over Rational Field in the elementary basis,
Symmetric Functions over Rational Field in the Schur basis]
```

### comment:3 Changed 3 years ago by tscrim

• Milestone changed from sage-8.4 to sage-duplicate/invalid/wontfix
• Status changed from new to needs_review

I would not consider this a bug. In fact, it is a potential issue with anything that uses the `WithRealizations()`. Generally you should not expect consistent results when trying to construct something from the abstract object as it is ill-defined. You need a specific realization (e.g., a specific basis) to use it. The abstract object is just acting as a façade for all of its realizations.

### comment:4 Changed 3 years ago by chapoton

• Status changed from needs_review to positive_review

ok, then

### comment:5 Changed 3 years ago by embray

• Resolution set to wontfix
• Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.