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

srepr not printing dict and set properly #19329

Closed
mcpl-sympy opened this issue May 15, 2020 · 0 comments · Fixed by #19346
Closed

srepr not printing dict and set properly #19329

mcpl-sympy opened this issue May 15, 2020 · 0 comments · Fixed by #19346
Labels

Comments

@mcpl-sympy
Copy link
Contributor

mcpl-sympy commented May 15, 2020

srepr prints the element in list and tuple correctly.

>>> from sympy import srepr
>>> from sympy.abc import x,y
>>> srepr([x,y])
[Symbol('x'), Symbol('y')]
>>> srepr((x,y))
(Symbol('x'), Symbol('y'))

However, srepr prints the elements in dict and set wrong.

>>> srepr({x, y})
{x, y}
>>> srepr({x: y})
{x: y}

Is this behavior intended? If it isn't, fixing it will be an easy job.

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

Successfully merging a pull request may close this issue.

2 participants