Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105853
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Terry Reedy <tjreedy@udel.edu> |
| Newsgroups | comp.lang.python |
| Subject | Re: help with program |
| Date | Sun, 27 Mar 2016 11:47:43 -0400 |
| Lines | 15 |
| Message-ID | <mailman.88.1459093676.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> <CAP1rxO6JBo+mnzyozJsBMqYTeuS-jHGwkiT5QqjuSs2kH2PdfQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de wH0jAXcyC7FLVUdr/67jnALazO+daG694+tQGB76VJHQ== |
| 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.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'exception.': 0.07; 'exit': 0.07; 'raises': 0.07; 'subject:help': 0.07; 'ide': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.10; 'jan': 0.11; 'exception': 0.13; 'idle.': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 'subject:program': 0.16; 'wrote:': 0.16; 'input': 0.18; 'saying': 0.22; 'am,': 0.23; '(or': 0.23; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.26; 'print': 0.30; 'code': 0.30; 'putting': 0.30; 'window': 0.30; 'run': 0.33; 'problem': 0.33; 'environment,': 0.33; 'wrap': 0.33; 'possible,': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; "won't": 0.38; 'log': 0.38; 'end': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'entire': 0.61; 'received:96': 0.63; 'alive.': 0.66; 'received:fios.verizon.net': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | pool-96-227-207-81.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
| In-Reply-To | <CAP1rxO6JBo+mnzyozJsBMqYTeuS-jHGwkiT5QqjuSs2kH2PdfQ@mail.gmail.com> |
| 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:105853 |
Show key headers only | View raw
On 3/27/2016 10: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. What you are saying is that putting input() at the end of a program (or before any exit point) is insufficient for keeping a window alive if the program has a bug that causes an exception. If that is considered possible, wrap the entire code in try-except and print or log the exception before using input to keep the window alive. During development, it is easier to just run the program in a persistent environment, whether console or IDE such as IDLE. -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: help with program Terry Reedy <tjreedy@udel.edu> - 2016-03-27 11:47 -0400
csiph-web