Skip to content
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

py3: bug in Symmetric functions #26327

Closed
fchapoton opened this issue Sep 21, 2018 · 4 comments
Closed

py3: bug in Symmetric functions #26327

fchapoton opened this issue Sep 21, 2018 · 4 comments

Comments

@fchapoton
Copy link
Contributor

in python3:

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

in python2:

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

CC: @tscrim

Component: python3

Issue created by migration from https://trac.sagemath.org/ticket/26327

@fchapoton fchapoton added this to the sage-8.4 milestone Sep 21, 2018
@fchapoton
Copy link
Contributor Author

comment:1

related to #26328

@fchapoton
Copy link
Contributor Author

comment:2

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]

@tscrim
Copy link
Collaborator

tscrim commented Sep 21, 2018

comment:3

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.

@tscrim tscrim removed this from the sage-8.4 milestone Sep 21, 2018
@fchapoton
Copy link
Contributor Author

comment:4

ok, then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants