[Python-ideas] Object grabbing

Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 2 01:58:06 EDT 2016


Franklin? Lee wrote:

>     with a,b,c,d from myobject:
>         a
>         b
>         c()
>         d = 1

This example is a bit weird -- if a, b, etc. are locals
then it's equivalent in every way to just

     with a,b,c,d from myobject:
         c()
         d = 1

-- 
Greg


More information about the Python-ideas mailing list