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


Groups > comp.lang.python > #87701

Re: UnboundLocalError in TKinter, SQLAlchemy script.

From Terry Reedy <tjreedy@udel.edu>
Subject Re: UnboundLocalError in TKinter, SQLAlchemy script.
Date 2015-03-18 17:37 -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>
Newsgroups comp.lang.python
Message-ID <mailman.9.1426714650.10327.python-list@python.org> (permalink)

Show all headers | 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