[Tutor] Misc question about scoping

bob gailer bgailer at gmail.com
Thu Jun 3 18:50:55 CEST 2010


On 6/3/2010 11:50 AM, Tino Dai wrote:
> Hi All,
>
>     Is there a way to express this:
>     isThumbnail = False
>     if size == "thumbnail":
>         isThumbnail = True
>

How I do that is:

isThumbnail = size == "thumbnail":

>      like this:
>      [ isThumbnail = True if size == "thumbnail" isThumbnail = False ]
>      and the scoping extending to one level above without resorting to 
> the global keyword?

I have no idea what you mean by that. Please provide context.


-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list