Liste des Groupes | Revenir à cl python |
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:You got lucky that \s in invalid. If it had been \t you would've got a tab character.
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> tex = '\sout{'
>>> tex
'\sout{'
>>>
Am I missing something ?
You're missing the warning it generates:
> python -E -Wonce
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> tex = '\sout{'
<stdin>:1: DeprecationWarning: invalid escape sequence '\s'
>>>
Les messages affichés proviennent d'usenet.