[Tutor] compare two souce files
jojo.mwebaze at gmail.com
Thu Oct 28 11:52:44 CEST 2010
I would like to compare two souce code files but ignoring doc strings,
comments and space (and perharps in future statement by statement
# prints my name
return 'my name'
print 'my name'
Want to check if Foo and Boo are the same. At functional level one can use
boo.func_code.co_code == foo.func_code.co_code
What is the class level equivlant of this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor