This happen for any code i'd paste, even the most trivial one, so I don't think it's a problem with the syntax, for example:
- copypasting with an empty line at the beginning gives the error (which is what usually happens when i select code)
- copypasting with no empty line only execute the first line (i is not defined, also apparent when pasting two "print" instructions)
When pasted, the code is highlighted and i need to press enter, it wasn't like that when I used to copy paste several lines and it worked (I've been doing this for a long time before that, including or not including an empty line in the paste, all the code was executed and not just the first line, also the pasted code was not highlighted as it is now)
I'll try the breakpoint() thing for debugging, thanks for the suggestion.
Added: so maybe that's just either some configuration or a compilation option that changed for the version available on my Linux distribution?
print('a') i = 1doesn't work. The weird thing is:
- copypasting with an empty line at the beginning gives the error (which is what usually happens when i select code)
- copypasting with no empty line only execute the first line (i is not defined, also apparent when pasting two "print" instructions)
When pasted, the code is highlighted and i need to press enter, it wasn't like that when I used to copy paste several lines and it worked (I've been doing this for a long time before that, including or not including an empty line in the paste, all the code was executed and not just the first line, also the pasted code was not highlighted as it is now)
I'll try the breakpoint() thing for debugging, thanks for the suggestion.
Added: so maybe that's just either some configuration or a compilation option that changed for the version available on my Linux distribution?