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

Indented command hits error #572

Closed
takluyver opened this issue Jul 13, 2011 · 1 comment · Fixed by #576
Closed

Indented command hits error #572

takluyver opened this issue Jul 13, 2011 · 1 comment · Fixed by #576
Labels
Milestone

Comments

@takluyver
Copy link
Member

We previously allowed entered code to be indented, for convenient pasting from editors, web pages, etc. This no longer works in 0.11rc1: <space><space>a=1 gives an IndentationError.

I think previously we solved this by prepending if True:\n if the first line was indented, although I don't know if there's a neater solution.

@takluyver
Copy link
Member Author

Added a message about using the %paste magic, which is as fixed as this is going to get for now.

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.

1 participant