[XML-SIG] Re: [4suite] Extend of cDomlette DOM API support

Daniel Larsson daniell@servicefactory.se
23 Jul 2002 17:40:18 +0200


--=-bFAkMM5nsZajSsYEGOm5
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Sort of unrelated, but isn't the call to filter_func inside the loop
redundant in doc_order_iterator_filter? Looks like the function is
applied twice on each child. Not that it normally should cause any
problems...

On Mon, 2002-07-22 at 08:39, Uche Ogbuji wrote:
>=20
> def doc_order_iterator_filter(node, filter_func):
>     if filter_func(node):
>         yield node
>     for child in node.childNodes:
>         for cn in doc_order_iterator_filter(child, filter_func):
>             if filter_func(cn): # Isn't this line redundant?
>                 yield cn
>     return
>=20
--=20
Daniel Larsson
Service Factory AB
=C5rsta=E4ngsv=E4gen 17
Phone: +46 70 559 41 61

--=-bFAkMM5nsZajSsYEGOm5
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQA9PXjh8CJVUq/zOt8RAiwwAJ0YG3M+LzJuE3s39gJmPwrdY9V4HwCdGx2h
wIWNZKnVDpFQoxHs78c1fFo=
=QGtx
-----END PGP SIGNATURE-----

--=-bFAkMM5nsZajSsYEGOm5--