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


Groups > comp.lang.python > #87737

Re: UnboundLocalError in TKinter, SQLAlchemy script.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'say,': 0.05; 'tkinter': 0.07; 'wednesday,': 0.07; 'answering': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'posted': 0.15; 'enough.': 0.16; 'incomplete': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'starts': 0.20; 'thanks.': 0.20; 'header:User-Agent:1': 0.23; 'error': 0.23; 'adds': 0.24; 'example.': 0.24; 'mention': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'along': 0.30; 'code': 0.31; 'lines': 0.31; 'usually': 0.31; 'apparently': 0.31; 'file': 0.32; 'minimal': 0.33; 'comment': 0.34; 'should': 0.36; 'minimum': 0.38; 'sometimes': 0.38; 'to:addr :python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'new': 0.61; 'march': 0.61; 'simple': 0.61; 'complete': 0.62; 'such': 0.63; 'more': 0.64; 'repeat': 0.74; 'attention': 0.75; '2015': 0.84; 'irrelevant': 0.84; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: UnboundLocalError in TKinter, SQLAlchemy script.
Date Thu, 19 Mar 2015 05:42:57 -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>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-98-114-97-173.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
In-Reply-To <98a3ba48-f769-44c8-af24-752f94662117@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.19
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.22.1426758206.10327.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1426758206 news.xs4all.nl 2949 [2001:888:2000:d::a6]:50381
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:87737

Show key headers only | 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