Steven, Bruno, Terry & Duncon, thank you for your insights, it really
helped me a great deal.
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
Terry Hancock wrote:
> So far, the only time I've ever encountered this is with the
> __new__ method, which, being a classmethod, needs "cls"
> (which gets loaded with the *class* not the *instance*).
>
The __new__ method isn't actually a classmethod. In
http://www.python.org/2.2.3/descrintro.h
On Mon, 13 Mar 2006 17:18:16 +0100
"Martin P. Hellwig" <[EMAIL PROTECTED]> wrote:
> While I was reading PEP 8 I came across this part:
>
> """
> Function and method arguments
> Always use 'self' for the first argument to instance
> methods. Always use 'cls' for the first argument to
>
Martin P. Hellwig wrote:
> While I was reading PEP 8 I came across this part:
>
> """
> Function and method arguments
>Always use 'self' for the first argument to instance methods.
>Always use 'cls' for the first argument to class methods.
> """
>
> Now I'm rather new to programming and u
Martin P. Hellwig wrote:
> While I was reading PEP 8 I came across this part:
>
> """
> Function and method arguments
>Always use 'self' for the first argument to instance methods.
>Always use 'cls' for the first argument to class methods.
> """
>
> Now I'm rather new to programming and u
While I was reading PEP 8 I came across this part:
"""
Function and method arguments
Always use 'self' for the first argument to instance methods.
Always use 'cls' for the first argument to class methods.
"""
Now I'm rather new to programming and unfamiliar to some basic concepts
of OOP.