I am new to python. I have a few questions coming from an armature!

Terry Reedy tjreedy at udel.edu
Wed Aug 17 20:55:07 EDT 2016


On 8/17/2016 7:13 PM, Lawrence D’Oliveiro wrote:
> On Thursday, August 18, 2016 at 8:25:37 AM UTC+12, Terry Reedy wrote:
>>
>>          for section_name, line_number in text.parser.toc:
>>              def goto(line=line_number):
>>                  text.yview(line)
>>              drop.add_command(label=section_name, command=goto)
>
> You don’t think of that as having its own bit of subtle nastiness?

No, you will have to be explicit.


-- 
Terry Jan Reedy





More information about the Python-list mailing list