+ -

Pages

Sunday, July 29, 2012

Insight

When creating methods for classes, you have to self as the first argument. 


Now I know...


The method is a function. The function takes the object (that was created from the class) as its VERY argument.
5 Khalid's Python Journal: Insight When creating methods for classes, you have to self as the first argument.  Now I know... The method is a function. The function takes ...

No comments:

Post a Comment

< >