osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

revisiting the "What am I running on?" question


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