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

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to