[Chicago] April Talk Topic Python 3.2 Features

Massimo DiPierro mdipierro at cs.depaul.edu
Tue Mar 13 13:42:03 CET 2012


Are you interested in a talk on running web2py dal/template/forms under flask, bottle, pyramid, django, tornado etc.?

We are working this right now as part of the pylon sprint (even if I am back in Chicago) and we have it working.

Massimo


On Mar 13, 2012, at 7:24 AM, Brian Ray wrote:

> On Mar 12, 2012, at 9:27 PM, "J. D. Jordan" <zanson at zanson.org> wrote:
> 
>> For the format thing, the {} has 0, because you are formatting
>> argument 0.  You could also make it table['Jack'] instead of 0['Jack']
>> and have .format(table=table)
> 
> Makes sense, thanks.
> 
>> 
>> nonlocal means that it is scoped outside of the current scope, but not
>> all the way up in global...
>> 
>> def bob(myvar):
>> def subfunc():
>>   nonlocal myvar
>>   return myvar * 10
>> return subfunc
>> 
> 
> So, technically, nonlocal is the previous frame? I can think of some cases I want to check this out to see what it does. For instance, if a class has self.foo and within a method could I just nonlocal foo?
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago



More information about the Chicago mailing list