Port of Python's difflib.SequenceMatcher class
Pragma
ericanderton at yahoo.removeme.com
Mon Dec 4 07:09:24 PST 2006
Michael Butscher wrote:
> Hi,
>
> a D port (version 0.175) of Python's difflib.SequenceMatcher class to
> generate diff's is available at
>
> http://www.mbutscher.de/snippets/difflib_d20061202.zip
>
> It might need some cleaning up yet but the translated doctests pass
> (except one I couldn't make compile in D, but "in theory" it passes as
> well).
>
> Comments, critique?
I agree with Walter that you should throw this up on a page somewhere.
I'm curious, but rarely have time to sift through sourcecode unless I'm
in need of something specific - I develop using SVN 99% of the time,
which does .diff output for me already.
But I *am* curious about how the porting went, what the pitfalls were,
and how you worked around Python idioms and tuple types. Also, I'm
wondering if the D version brings any extra perks like better
performance, or less/clearer code?
--
- EricAnderton at yahoo
More information about the Digitalmars-d-announce
mailing list