Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: How can I debug silent failure - print no output Date: Sat, 28 May 2016 12:52:03 -0400 Organization: IISS Elusive Unicorn Lines: 20 Message-ID: References: <20160528043518.GA84172@cskk.homeip.net> <319a2104-8756-41f0-904f-4e7634a23ff1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 3G6sotDf67WVHfUVPWzR8guhSAm81kAL9du2w9QjtkcQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python3': 0.05; 'subject:How': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subsequent': 0.15; '"*"': 0.16; '2016': 0.16; 'create:': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'skip:> 20': 0.16; 'subject:debug': 0.16; 'url:home': 0.18; 'shell': 0.18; 'os,': 0.22; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'expanding': 0.27; 'fri,': 0.27; 'actual': 0.28; 'joining': 0.29; 'code': 0.30; 'getting': 0.33; '-0700': 0.33; 'file': 0.34; 'skip:d 20': 0.34; 'list': 0.34; 'skip:> 10': 0.35; 'to:addr :python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'list.': 0.37; 'names': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-73-116-140.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: X-Mailman-Original-References: <20160528043518.GA84172@cskk.homeip.net> <319a2104-8756-41f0-904f-4e7634a23ff1@googlegroups.com> Xref: csiph.com comp.lang.python:109215 On Fri, 27 May 2016 23:35:21 -0700 (PDT), Sayth Renshaw declaimed the following: >[sayth@localhost pyXML]$ python3 racemeeting.py data/*.xml You're on a Linux type OS, no? The SHELL is EXPANDING data/*.xml with the result that you are getting a list of actual file names >['data/20160528RAND0.xml'] >data/20160528RAND0.xml One file in the list. And your code is then joining it with "*" to create: data/20160528RAND0.xml/* which will not be found by the subsequent glob.glob -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/