Class method differences in Python: bound, unbound and static

Posted by Franck Mesirard on Stack Overflow See other posts from Stack Overflow or by Franck Mesirard
Published on 2008-09-22T10:49:43Z Indexed on 2010/04/23 3:33 UTC
Read the original article Hit count: 268

Filed under:

What is the difference between the following class methods?

Is it that one is static and the other is not?

Class Test(Object):
  def method_one(self):
    print "Called method_one"

  def method_two():
    print "Called method_two"

a_test = Test()
a_test.method_one()
a_test.method_two()

© Stack Overflow or respective owner

Related posts about python