tuples within tuples

korovev76 at gmail.com korovev76 at gmail.com
Fri Oct 26 14:54:24 CEST 2007

> Without a better example or explanation of what you are trying to do it is
> difficult

You're right.
Actually i'm parsing an xml file using pyrxp, which returns something
like this:
(tagName, attributes, list_of_children, spare)
Where list_of_children might "be a list with elements that are 4-
tuples or plain strings".

In other terms, if I have something like this:
it's parsed like this:
('tagA', None, [('tagB', None, ['bobloblaw], None)], None)...

Fact is that my xml is much more deep... and I'm not sure how to
resolve it


More information about the Python-list mailing list