Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie 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: References: <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: 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: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <57c63a9d-8bec-efe5-a5cb-06497c5c4792@gmail.com> X-Mailman-Original-References: Xref: csiph.com comp.lang.python:109187 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.