[pypy-issue] Issue #2880: Pasting into MacOS shell doesn't indent correctly (pypy/pypy)

Bram Cohen issues-reply at bitbucket.org
Fri Aug 31 13:30:31 EDT 2018


New issue 2880: Pasting into MacOS shell doesn't indent correctly
https://bitbucket.org/pypy/pypy/issues/2880/pasting-into-macos-shell-doesnt-indent

Bram Cohen:

The auto-indent in the MacOS shell, while it's the correct behavior for interactive entering of code, is broken for cut and paste. What happens when you try to paste in a whole function is that the auto-indent for later lines kicks in, then the indentation getting pasted gets added as well, resulting in a syntax error.

The appropriate solution is to make auto-indent not happen in the middle of pastes.




More information about the pypy-issue mailing list