[triangle-zpug] how to match strings in python

Bradley A. Crittenden brad.crittenden at gmail.com
Thu Apr 2 18:01:32 UTC 2009


On Apr 2, 2009, at 13:52 , Chris Rossi wrote:

>
>
> On Thu, Apr 2, 2009 at 11:49 AM, Stephan Altmueller <stephan_altmueller at unc.edu 
> > wrote:
> Hi,
>
> http://en.wikibooks.org/wiki/Algorithm_implementation/Strings/Longest_common_substring#Python
>
> Wow, clearly implemented by a C programmer translating C directly to  
> Python.  Love the opaque identifiers and the convoluted code.  Looks  
> like he's creating a creating a 2 dimensional matrix of size  
> len(string1) x len(string2)?!?!
>
> Is mine the shortest?  ;)


Shortest, most readable, most straightforward.  Well, except for  
having to know about zip, which is really cool.

--bac




More information about the triangle-zpug mailing list