> [cadena1]
> attr1 = value1
> attr2 = value2
> attr3 = value3
> attr4 = value4
> attr5 = value5
>
> [cadena2]
> attr1 = value1
> attr2 = value2
> attr3 = value3
> attr4 = value4
> attr5 = value5
>



Hola,

tiene todo el aspecto de los tipicos ficheros de conf.
Si ese es el proposito, quizas te ayudaria usar el modulo que python trae
para manipular ficheros de este tipo


http://docs.python.org/library/configparser.html#module-ConfigParser

Suerte,
Jose

P.S. perdon por la ortografia.
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a