[issue42020] interpreter hangs forever on invalid input

Eryk Sun report at bugs.python.org
Mon Oct 12 15:21:57 EDT 2020


Eryk Sun <eryksun at gmail.com> added the comment:

The terminal you're using apparently implements C1 controls [1]. U+009B is the Control Sequence Introducer (CSI) for ANSI escape sequences. U+0090 starts a Device Control String (DCS), and it gets terminated by U+009C, a String Terminator (ST). For example, in GNOME Terminal in Linux:

    >>> print('spam\x9b4Deggs')
    eggs

    >>> print('spam\x90some DCS string\x9c')
    spam

---

[1] https://en.wikipedia.org/wiki/C0_and_C1_control_codes

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42020>
_______________________________________


More information about the Python-bugs-list mailing list