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


Groups > comp.lang.python > #87701

Re: UnboundLocalError in TKinter, SQLAlchemy script.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'ignored': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stack,': 0.09; 'jan': 0.12; 'posted': 0.15; 'guessing': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'trace.': 0.16; 'do,': 0.16; 'so.': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'stack': 0.19; 'code,': 0.22; 'header :User-Agent:1': 0.23; 'example.': 0.24; 'post': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'along': 0.30; "i'm": 0.30; 'asked': 0.31; 'lines': 0.31; 'apparently': 0.31; 'minimal': 0.33; 'comment': 0.34; 'too': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'entire': 0.61; 'complete': 0.62; 'url:help': 0.67; 'lol.': 0.74; 'repeat': 0.74; '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 Wed, 18 Mar 2015 17:37:05 -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>
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 <2cfe4170-5ee4-4dd9-80b2-3d7819b08e02@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.9.1426714650.10327.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1426714650 news.xs4all.nl 2969 [2001:888:2000:d::a6]:50407
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:87701

Show key headers only | View raw


On 3/18/2015 3:42 PM, Chris Kavanagh wrote:

> 2nd, you say you "don't want to play guessing games", yet complain
> about "300 lines of irrelevant code", lol. Which way is it? Do you
> want the code, or not? How do I know what's relevant or irrelevant
> when I'm clearly confused?

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.

> On Stack, if you don't post the entire
> code, you are asked to do so. I would think it would be the same
> procedure here.

On StackOverflow, you are also asked to post a MCVE,
https://stackoverflow.com/help/mcve
not 'the entire code' you every ran.

I ignored your post because you obviously posted way, way, too much 
code, along with no stack trace.  I do the same on SO.

-- 
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