>>> class C: ... def m(self, foo): ... print foo ... >>> c = C() >>> c.m("foo") foo >>> C.m(c, "foo") foo