[wingide-users] cannot determine return type of re.match()

Michael P. Soulier michael_soulier at mitel.com
Tue May 6 08:12:24 MDT 2008


I'm surprised to find that WingIDE cannot determine the type of 'm' in 
this code.

import re

m = re.search(r'foo', bar)

Doesn't re.search always return a match object or None?

Thanks,
Mike
-- 
Michael P. Soulier <michael_soulier at mitel.com>, 613-592-2122 x2522
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein


More information about the wingide-users mailing list