News for hackers. Stuff that matters.
Re:Metaclasses in Python by d0mine on Friday December 16, 2011 @01:39AM (#3359749)
You should either remove `self` or bind it differently:

  foo = Foo()
  def hello():
      print("hello, %s" % (foo,))
  foo.hello = hello
`foo` is an instance therefore `self == foo` already.

  def hello(self):
      print("hello, %s" % (self,))
  foo.hello = types.MethodType(hello, foo)

There are no comments on this comment yet.