En Thu, 25 Sep 2008 05:30:41 -0300, <[EMAIL PROTECTED]> escribió:
I've the following results from Difflib.Compare() which I want to parse
them
using the regular expression to find out the the values that have
changed.
Results:-
-------
- Analysis Time (Iterations = 1) = 0.0449145s
? ^^ ^
+ Analysis Time (Iterations = 1) = 0.0447347s
? ^^ ^
Here I want to display only the values that differ i.e. the lines prceded
with +,?,- signs >
Instead of parsing that generated file (intended for human usage), use
difflib.Differ or difflib.SequenceMatcher - you get a programming
interface to the same info, easier to use in a script.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list