You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a small working example: Paste (either using a keyboard shortcut or %paste, but you can't type it in line by line because it returns on the first line on which the total number of close parentheses so far equals the number of open parentheses so far, so it won't let you type past "(spam,") the following into an ipython shell:
)
(spam,
ham)
(eggs,
beans)
I expect it to give me a SyntaxError showing the unmatched ')', but instead I get
IndentationError: unindent does not match any outer indentation level
(and it points to the last line).
(A slightly smaller working example is
)
(spam,
ham)
(eggs,
beans
)
The text was updated successfully, but these errors were encountered:
Indeed, this is IPython-specific behavior. It's undesirable, so I'll mark it as a bug.
For people who'd like to fix it: to see what happens, you can call %debug right afterwards, and it should point you right at the place where the unwanted behavior stems from (IPython.core.inputtransformer2).
Here is a small working example: Paste (either using a keyboard shortcut or %paste, but you can't type it in line by line because it returns on the first line on which the total number of close parentheses so far equals the number of open parentheses so far, so it won't let you type past "(spam,") the following into an ipython shell:
I expect it to give me a SyntaxError showing the unmatched ')', but instead I get
(and it points to the last line).
(A slightly smaller working example is
)
The text was updated successfully, but these errors were encountered: