revisiting the "What am I running on?" question

songbird songbird at anthive.com
Tue Feb 19 09:07:33 EST 2019


Rick Johnson wrote:
...
> The standard idiom for regexp match objects is to test for truthiness, not to use an except-clause.
>
> m = re.search("^[A-Za-z]:", sysprobetmp)
> if m:
>     ...

  ok, thanks!  :)


  songbird


More information about the Python-list mailing list