Re: [xml] Question about parent/child (python-libxml2)
- From: Daniel Veillard <veillard redhat com>
- To: "W. Borgert" <debacle debian org>
- Cc: xml gnome org
- Subject: Re: [xml] Question about parent/child (python-libxml2)
- Date: Mon, 10 May 2004 11:55:17 -0400
On Mon, May 10, 2004 at 05:49:20PM +0200, W. Borgert wrote:
Quoting Daniel Veillard <veillard redhat com>:
fields ??? Obviously the constructor for "for .. in" does
a recursive descent on each element list. So please read
Obviously it was not obvious to me. I somehow assumed that
the for-loop had the same semantics.
I think it's all Stéphane Bidoul faults :-), he added support
for iterator at the Python level.
Since usually people have more trouble walking a tree in document
order than a simple linked list, his choice is probably what helps
Python users most, even if it's not obvious at a syntactic level
that the semantic recurses down the trees.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]