Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87737

Re: UnboundLocalError in TKinter, SQLAlchemy script.

From Terry Reedy <tjreedy@udel.edu>
Subject Re: UnboundLocalError in TKinter, SQLAlchemy script.
Date 2015-03-19 05:42 -0400
References <mailman.511.1426646469.21433.python-list@python.org> <5509693b$0$12996$c3e8da3$5496439d@news.astraweb.com> <2cfe4170-5ee4-4dd9-80b2-3d7819b08e02@googlegroups.com> <mailman.9.1426714650.10327.python-list@python.org> <98a3ba48-f769-44c8-af24-752f94662117@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.22.1426758206.10327.python-list@python.org> (permalink)

Show all headers | View raw


On 3/19/2015 4:23 AM, Chris Kavanagh wrote:
> On Wednesday, March 18, 2015 at 5:37:53 PM UTC-4, Terry Reedy wrote:

>> You comment out apparently irrelevant lines and see if you still have
>> the same problem, and if you do, delete.  Repeat until you have a
>> Minimal Complete Verifiable Example.

> Thanks. . .Understood now.

I should mention that the other approach to the same end is to start a 
new 'experiment' file that starts with what might be the minimum and 
adds more only if the error is not reproduced.  I sometimes do this with 
posted SO code.  With tkinter questions, 10 lines (versus an original 
and incomplete code of, say, 50 lines) is typically enough.  Answering 
with such an MCVE, along with the usually simple fix, focuses attention 
on the particular issue

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

UnboundLocalError in TKinter, SQLAlchemy script. Chris Kavanagh <ckava3@gmail.com> - 2015-03-17 22:41 -0400
  Re: UnboundLocalError in TKinter, SQLAlchemy script. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-18 23:02 +1100
    Re: UnboundLocalError in TKinter, SQLAlchemy script. Chris Kavanagh <ckava3@gmail.com> - 2015-03-18 12:42 -0700
      Re: UnboundLocalError in TKinter, SQLAlchemy script. Terry Reedy <tjreedy@udel.edu> - 2015-03-18 17:37 -0400
        Re: UnboundLocalError in TKinter, SQLAlchemy script. Chris Kavanagh <ckava3@gmail.com> - 2015-03-19 01:23 -0700
          Re: UnboundLocalError in TKinter, SQLAlchemy script. Terry Reedy <tjreedy@udel.edu> - 2015-03-19 05:42 -0400
      Re: UnboundLocalError in TKinter, SQLAlchemy script. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-03-18 21:49 +0000
        Re: UnboundLocalError in TKinter, SQLAlchemy script. Chris Kavanagh <ckava3@gmail.com> - 2015-03-19 01:22 -0700
      Re: UnboundLocalError in TKinter, SQLAlchemy script. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-19 09:38 +1100
        Re: UnboundLocalError in TKinter, SQLAlchemy script. Chris Kavanagh <ckava3@gmail.com> - 2015-03-19 01:21 -0700

csiph-web