[Tutor] re.compile and objects - what am doing wrong?

Alan Gauld alan.gauld at freenet.co.uk
Tue Dec 28 00:50:47 CET 2004


From: "Jacob S." <keridee at jayco.net>
> > searchPat=re.compile("%s") % key # Doesn't work
> Now, what you seem to be using here is % formatting.
> The first thing I see wrong -- you should put the % key inside the
> parenthesis

Doh! I missed that one completely! Well done Jacob.

Alan G.
Too much egg nog?


More information about the Tutor mailing list