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


Groups > comp.lang.python > #109187

Re: How can I debug silent failure - print no output

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Michael Torrie <torriem@gmail.com>
Newsgroups comp.lang.python
Subject Re: How can I debug silent failure - print no output
Date Fri, 27 May 2016 21:06:38 -0600
Lines 11
Message-ID <mailman.3.1464404803.1839.python-list@python.org> (permalink)
References <ef399830-bfc1-40ce-9a5d-403040aa8e78@googlegroups.com> <57c63a9d-8bec-efe5-a5cb-06497c5c4792@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de WeA8J+LaTG9lecpdtuFgCAbBP2KKnYQB23jNH8+mIfjQ==
Return-Path <torriem+gmail@torriefamily.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'calls.': 0.07; 'sanity': 0.07; 'subject:How': 0.09; 'happen.': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'iterating': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'structure.': 0.16; 'subject:debug': 0.16; 'wrote:': 0.16; 'debugging': 0.18; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'earlier': 0.27; 'program,': 0.29; "i'd": 0.31; 'message-id:@gmail.com': 0.34; 'add': 0.34; 'list': 0.34; 'returning': 0.35; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:org': 0.37; 'doing': 0.38; 'skip:p 20': 0.38; 'sure': 0.39; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'charset:windows-1252': 0.62; 'more': 0.63; 'expect.': 0.84
X-Virus-Scanned amavisd-new at torriefamily.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0
In-Reply-To <ef399830-bfc1-40ce-9a5d-403040aa8e78@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <57c63a9d-8bec-efe5-a5cb-06497c5c4792@gmail.com>
X-Mailman-Original-References <ef399830-bfc1-40ce-9a5d-403040aa8e78@googlegroups.com>
Xref csiph.com comp.lang.python:109187

Show key headers only | View raw


On 05/27/2016 08:41 PM, Sayth Renshaw wrote:
> This is my terminal and directory structure.

Add more print() calls. Offhand I'd say that pq(filename=filename) is
returning an empty list so that for loop is not doing anything.  Hence
your debugging print() calls never happen.

Add sanity print()'s earlier in your program, and make sure everything
you are iterating over is what you expect.

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


Thread

How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-27 19:41 -0700
  Re: How can I debug silent failure - print no output Michael Torrie <torriem@gmail.com> - 2016-05-27 21:06 -0600
    Re: How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-27 21:02 -0700
      Re: How can I debug silent failure - print no output cs@zip.com.au - 2016-05-28 14:35 +1000
        Re: How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-27 23:35 -0700
          Re: How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-28 00:14 -0700
            Re: How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-28 01:01 -0700
              Re: How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-28 02:44 -0700
                Re: How can I debug silent failure - print no output Sayth Renshaw <flebber.crue@gmail.com> - 2016-05-28 03:32 -0700
                Re: How can I debug silent failure - print no output cs@zip.com.au - 2016-05-29 08:43 +1000
          Re: How can I debug silent failure - print no output Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-28 12:52 -0400
  Re: How can I debug silent failure - print no output Jason Friedman <jsf80238@gmail.com> - 2016-05-27 22:02 -0600

csiph-web