[Tutor] Attempt to download web page failed due to use of Frames

Kalle Svensson kalle@gnupung.net
Tue, 30 Jan 2001 22:28:43 +0100


--cvVnyQ+4j833TQvp
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Sez I:
> start =3D 0
> frames =3D {}
>=20
> while 1:
>     m =3D r.search(x)

This should have been
      m =3D r.search(x, start)
Ooops...

>     if not m:
>         break
>     frames[m.group(1)] =3D ""
>     start =3D m.start(1)

Anyway, the whole loop thing could have been avoided if I hade read the
docs...

ms =3D r.findall(x)
for m in ms:
    frames[m] =3D ""

would have been better...

Peace,
  Kalle
--
Email: kalle@gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD

--cvVnyQ+4j833TQvp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6dzIKdNeA1787sd0RAhgpAJ4jTxIwh+tji3lkD2OwQTfIfECAtQCgvaOw
A/pzw0VW7E1WzcACQ26e+lI=
=+YI7
-----END PGP SIGNATURE-----

--cvVnyQ+4j833TQvp--