Spread a statement over various lines

Manfred Lotz ml_news at posteo.de
Tue Sep 17 15:10:58 EDT 2019


On Tue, 17 Sep 2019 20:59:47 +0200
Manfred Lotz <ml_news at posteo.de> wrote:

> I have a function like follows
> 
> def regex_from_filepat(fpat):
>     rfpat = fpat.replace('.', '\\.') \
>                       .replace('%', '.')  \

Not related to my question but the second replace must be:
                  .replace('?', '.')  





More information about the Python-list mailing list