[Tutor] Re: problems with re module

Thomi Richards thomi at imail.net.nz
Sun Nov 16 21:11:27 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 17 Nov 2003 03:44, Lee Harr wrote:
> def f(matchobj):
>     #print matchobj.group(0), matchobj.group(1), matchobj.group(2)
>     return '<graphic srccredit="Fix Me!" fileref="%s" />' %
> matchobj.group(2)
>
>
> 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.

ahhh!!!!

so simple, once you see it!

thanks a lot!!! ;-)

- -- 
Thomi Richards,
http://once.sourceforge.net/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/uC5P2tSuYV7JfuERAo8kAJ91pYsEg9NpBLTcB+24JL3Fpv+wAACfd9FN
27a4YprolEP/TraQiDL5qS4=
=VXfK
-----END PGP SIGNATURE-----




More information about the Tutor mailing list