[Tutor] difflib context to string-object?

bob gailer bgailer at gmail.com
Fri Mar 19 15:11:38 CET 2010


On 3/19/2010 6:55 AM, Karjer Jdfjdf wrote:
> With difflib.context_diff it is possible to write the context to files.
>
> difflib.context_diff(/a/, /b/[, /fromfile/][, /tofile/][, 
> /fromfiledate/][, /tofiledate/][, /n/][, /lineterm/])
>
> Is it also possible to do this to seperate string-objects instead of 
> writing them to files?
>
>
Take a look at the stringIO module.

-- 
Bob Gailer
919-636-4239
Chapel Hill NC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100319/c49848c5/attachment.html>


More information about the Tutor mailing list