Opened 2 years ago

Closed 2 years ago

#26327 closed enhancement (wontfix)

py3: bug in Symmetric functions

Reported by: chapoton Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: python3 Keywords:
Cc: tscrim Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

in python3:

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

in python2:

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

Change History (5)

comment:1 Changed 2 years ago by chapoton

related to #26328

comment:2 Changed 2 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 2 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 2 years ago by chapoton

  • Status changed from needs_review to positive_review

ok, then

comment:5 Changed 2 years ago by embray

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