Sujet : Re: Correct syntax for pathological re.search()
De : alan (at) *nospam* csail.mit.edu (Alan Bawden)
Groupes : comp.lang.pythonDate : 08. Oct 2024, 22:59:48
Autres entêtes
Organisation : ITS Preservation Society
Message-ID : <864j5mfgzf.fsf@williamsburg.bawden.org>
References : 1 2 3 4 5
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Karsten Hilbert <
Karsten.Hilbert@gmx.net> writes:
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'
>>>