Hello Tutor

I would like to compare two souce code files but ignoring doc strings,
comments and space (and perharps in future statement by statement
comparision)

e.g

class Foo
  def foo():
     # prints my name
     return 'my name'

class Boo
   def boo():
      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?

cheers
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to