[Tutor] Why are arguments sometimes on the left side?

Joel Goldstick joel.goldstick at gmail.com
Mon Sep 20 16:28:29 CEST 2010


On Mon, Sep 20, 2010 at 10:16 AM, Michael Scharf <mnshtb at gmail.com> wrote:

>
> Hi,
>
>
> Why is it
>
>
>
>    list0.extend(list1)
>

because extend is a list method

>
>
> and not
>
>
>    extend(list 0, list1)
>
>
>
> or
>
>
>    stri0 = stri0.strip()
>
>
> strip is a string method


> and not
>
>
>    stri0 = strip(stri0)
>
>
>
> Why have arguments on the left side at all, when usually the dot notation
> left to right implies a hierarchical relation: file.class or class.method
> etc.
>
>
>
> I googled this, but didn’t find it.
>
>
>
> Thank you,
>
> Mike
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
Joel Goldstick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100920/af402451/attachment.html>


More information about the Tutor mailing list