Sujet : Re: Correct syntax for pathological re.search()
De : pieter-l (at) *nospam* vanoostrum.org (Pieter van Oostrum)
Groupes : comp.lang.pythonDate : 08. Oct 2024, 19:50:14
Autres entêtes
Message-ID : <m2cyka8ox5.fsf@cochabamba.home>
References : 1 2 3 4
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)
ram@zedat.fu-berlin.de (Stefan Ram) writes:
"Michael F. Stemper" <michael.stemper@gmail.com> wrote or quoted:
>
path = r'C:\Windows\example' + '\'
>
You could even omit the '+'. Then the concatenation is done at parsing time instead of run time.
-- Pieter van Oostrum <pieter@vanoostrum.org>www: http://pieter.vanoostrum.org/PGP key: [8DAE142BE17999C4]