Il 15 aprile 2010 12.39, Vitto <natha...@gmail.com> ha scritto:
> Ti consiglio il modulo ConfigParser che fa proprio quello che chiedi a patto
> che il file abbia una determinata struttura.

Vado subito a vedere!
Grazie!

PS:
Avevo già addocchiato la funzione

string.replace(str, old, new[, maxreplace])¶
    Return a copy of string str with all occurrences of substring old
replaced by new. If the optional argument maxreplace is given, the
first maxreplace occurrences are replaced.

E anche l'oggetto Template che possono tornare veramente utili.
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a