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

Adding Sequences does not respect universese #23371

Open
roed314 opened this issue Jul 5, 2017 · 0 comments
Open

Adding Sequences does not respect universese #23371

roed314 opened this issue Jul 5, 2017 · 0 comments

Comments

@roed314
Copy link
Contributor

roed314 commented Jul 5, 2017

sage: foo = Sequence([], universe=ZZ)
sage: foo += [1/2]
sage: foo, foo.universe(), foo[0].parent()
([1/2], Integer Ring, Rational Field)

The solution is probably to override some additional functions in sage.structure.sequence.Sequence_generic, which inherits from list.

Component: coercion

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

@roed314 roed314 added this to the sage-8.0 milestone Jul 5, 2017
@mkoeppe mkoeppe removed this from the sage-8.0 milestone Dec 29, 2022
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

2 participants