[issue1208] Match object should be guaranteed to always be true

2007-09-26 Thread Georg Brandl
Georg Brandl added the comment: Fixed in the docs as r58270. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1208] Match object should be guaranteed to always be true

2007-09-26 Thread Martin Horcicka
New submission from Martin Horcicka: Many people expect the match object from the re module to always be true. They use it this way: if regexp.match(string): do_something() Some people do not expect it and use it differently: if regexp.match(string) is not None: do_something() Even in