Compare source code

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Nov 1 18:18:23 EDT 2010


In message <8j8am4Fk2jU1 at mid.individual.net>, Peter Pearson wrote:

> On Mon, 01 Nov 2010 12:09:12 +1300, Lawrence D'Oliveiro wrote:
>
>> In message <4ccd5ad9$0$19151$426a74cc at news.free.fr>, jf wrote:
>>
>>> I edit each file to remove tabs ...
>>
>>     expand -i <oldfile >newfile
>>
>>> Do you know a tools to compare the initial file with the cleaned one to
>>> know if the algorithms are the same ?
>>
>>     diff -b oldfile newfile
> 
> Warning: "diff -b" won't detect changes in indentation.  Changes in
> indentation can change a Python program.

I’m getting less and less keen on that particular feature of Python...



More information about the Python-list mailing list