Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

> wontfix would really suck, because that would mean every REPL written with 
> the `code` module will be broken, even IPython:

I understand, but I don't see a way to fix this without reverting the change to 
detect unclosed triple quites or without committing a lot of code to handle 
special cases.

Also notice that in your example with python, as soon as you close the quotes 
you get an error:

In [1]: asdf dsfsd """
   ...:
   ...:
   ...: """
  Input In [1]
    asdf dsfsd """
         ^
SyntaxError: invalid syntax

So is not as dramatic as you mention when you say "every REPL written with the 
`code` module will be broken". Although I understand it depends on the optics.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46521>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to