Spread a statement over various lines

Peter Otten __peter__ at web.de
Thu Sep 19 02:36:04 EDT 2019


Manfred Lotz wrote:

>> Not related to your question, but:
>> You seem to try to convert a Windows wildcard pattern to a regex
>> pattern.
> 
> No, I'm on Linux.
> 
> Shortly, after I had posted the question I discovered fnmatch() in the
> standard library, and I changed my code accordingly.

I would have pointed to fnmatch, but I didn't recognize the '%' that you 
used instead of the usual '?', and fnmatch doesn't either, I think.

Where does '%' come from?




More information about the Python-list mailing list