map document in walkable way...
Shagshag13
shagshag13 at yahoo.fr
Thu May 30 14:55:47 EDT 2002
I have document which contain lines :
type 2
type 1
type 1
type 2
etc.
I would like to create some kind of class that i could use to map my
document and use it in a walkable way :
d = document(file)
for l in d:
if l.is_type1():
do_something
elif l.is_type2():
do_something_else
document if something like a container...
but don't know how to do that in a pythoner's way...
thank in advance to those who help...
s13.
More information about the Python-list
mailing list