[Tutor] Re: problems with re module

Lee Harr missive at hotmail.com
Sun Nov 16 09:44:47 EST 2003

def f(matchobj):
    #print matchobj.group(0), matchobj.group(1), matchobj.group(2)
    return '<graphic srccredit="Fix Me!" fileref="%s" />' % 

f = INFILE.readlines()  #inefficient! changing this in the future would be a 
good idea...

You are using the same variable name twice.
This is probably the root cause of the problem.

Tired of spam? Get advanced junk mail protection with MSN 8. 

More information about the Tutor mailing list