osdir.com


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

revisiting the "What am I running on?" question


MRAB wrote:
...
> Don't use a bare except, it'll catch _any_ exception.

  that's ok with this code IMO, but i see your point.


> If the regex matches, re.search will return a match object; if it 
> doesn't match, it'll return None.
>
> In any case, +1 to Dan's answer.
>
> [snip]

  ok, thanks!


  songbird