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


Groups > comp.lang.python > #105965

Re: help with program

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Sibylle Koczian <nulla.epistola@web.de>
Newsgroups comp.lang.python
Subject Re: help with program
Date Mon, 28 Mar 2016 09:48:49 +0200
Lines 21
Message-ID <mailman.134.1459242836.28225.python-list@python.org> (permalink)
References <1392737302.749065.1459024715818.JavaMail.yahoo.ref@mail.yahoo.com> <1392737302.749065.1459024715818.JavaMail.yahoo@mail.yahoo.com> <CAPTjJmoLW4ye7RotcjCYtBeGapObWSsJBLMVkaoqshYj+Xw+iA@mail.gmail.com> <nd7ui2$q46$1@ger.gmane.org> <mailman.85.1459088307.28225.python-list@python.org> <56f878e8$0$1593$c3e8da3$5496439d@news.astraweb.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de csJ1vMvS/23mkOOL4jEGlAC6uAY/J0ovxysLbfZDPcpQ==
Return-Path <nulla.epistola@web.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'raises': 0.07; 'received:192.168.178': 0.07; 'subject:help': 0.07; 'python': 0.10; ':-)': 0.12; 'exception': 0.13; '2016': 0.16; 'exceptions.': 0.16; 'message-id:@web.de': 0.16; 'received:192.168.178.22': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:program': 0.16; 'traceback.': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'linux,': 0.18; 'gui': 0.18; 'input': 0.18; 'windows': 0.20; 'programming': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'appear': 0.26; 'command': 0.26; 'solution,': 0.29; 'program,': 0.29; "i'm": 0.30; 'putting': 0.30; 'up.': 0.32; 'screen': 0.32; 'problem': 0.33; 'steven': 0.33; 'true.': 0.33; 'open': 0.33; 'file': 0.34; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'starting': 0.37; "won't": 0.38; 'speak': 0.38; 'end': 0.39; 'why': 0.39; 'sure': 0.39; 'application': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'received:de': 0.40; 'received:194': 0.61; 'charset:windows-1252': 0.62; 'mar': 0.65; "d'aprano:": 0.84; 'simple:': 0.84; 'same,': 0.91; 'mistakes': 0.95
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0
In-Reply-To <56f878e8$0$1593$c3e8da3$5496439d@news.astraweb.com>
X-ID ZB4tfcZTQh+PNh78afDGylcAvWddWHU1+RKQ3WJO-Wosn4tQHjll0A7Xr54i4guQle
X-TOI-MSGID 8c4ca472-ae54-4750-ad8d-c9481c20cb56
X-Mailman-Approved-At Tue, 29 Mar 2016 05:13:55 -0400
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
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>
Xref csiph.com comp.lang.python:105965

Show key headers only | View raw


Am 28.03.2016 um 02:20 schrieb Steven D'Aprano:
> On Mon, 28 Mar 2016 01:18 am, Bob Gailer wrote:
>
>> The problem with putting input at the end of a program is: if the program
>> raises an exception you won't see it.
>
> True. But the solution to that is simple: don't make mistakes when
> programming :-)
>
> If you have a better solution, please speak up. I don't know Windows very
> well and I'm not sure why the console is disappearing in the first place.
>
Because it was opened only by starting the program, and so it closes 
when the program ends. Wouldn't the same thing happen on Linux, if a 
console application were started from the file manager?

I would always start a console application from an open command prompt, 
in case of exceptions. And if my Python GUI application doesn't appear 
on the screen I do the same, to see the traceback.

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


Thread

Re: help with program Bob Gailer <bgailer@gmail.com> - 2016-03-27 10:18 -0400
  Re: help with program Steven D'Aprano <steve@pearwood.info> - 2016-03-28 11:20 +1100
    Re: help with program Sibylle Koczian <nulla.epistola@web.de> - 2016-03-28 09:48 +0200
    Re: help with program Sibylle Koczian <nulla.epistola@web.de> - 2016-03-28 09:48 +0200

csiph-web