What is a method?
A method is a function on some object x that you normally call as x.name(arguments…). Methods are defined as functions inside the class definition:
class C: def meth (self, arg): return arg*2 + self.attribute
CATEGORY: programming
A method is a function on some object x that you normally call as x.name(arguments…). Methods are defined as functions inside the class definition:
class C: def meth (self, arg): return arg*2 + self.attribute
CATEGORY: programming
this page was rendered by a django application in 0.03s 2008-08-28 23:44:55.244343. hosted by webfaction.