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

Multiple Assignment results in no output #60

Open
colinjbrown opened this issue Nov 30, 2018 · 2 comments
Open

Multiple Assignment results in no output #60

colinjbrown opened this issue Nov 30, 2018 · 2 comments
Labels
Backlog Higher priority than minor bug

Comments

@colinjbrown
Copy link
Member

When assigning to multiple elements instead of choosing one or the other part or both all parts of the assignment is ignored and instead nothing is output.

To Reproduce:

a,b = c,d = 3,4

image

@colinjbrown
Copy link
Member Author

Interesting this issue still exists in the lab extension
image

@dakoop
Copy link
Contributor

dakoop commented Jun 3, 2024

I think there is a question about what should happen here. In ipykernel in last_expr_or_assign ast_node_interactivity mode, no output is shown for a statement like b = c = 12. For us, showing no output seems incorrect. We could show just b or both b and c as outputs, but what would be the point of the second option? I would argue that having just b or in the case of the example above, a and b, would be the correct outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog Higher priority than minor bug
Projects
None yet
Development

No branches or pull requests

2 participants