Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.00; 'subject:code': 0.07; 'subject:Help': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:python': 0.16; 'do,': 0.16; 'wrote:': 0.18; 'code,': 0.22; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'am,': 0.29; 'then.': 0.30; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'comments': 0.31; 'comments,': 0.31; 'up:': 0.31; 'figure': 0.32; 'cases': 0.33; 'subject:with': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'explains': 0.36; 'thanks': 0.36; 'should': 0.36; 'received:209': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'read': 0.60; 'interview': 0.61; 'simply': 0.61; 'back': 0.62; 'lack': 0.78; 'replies.': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=U5WY4nHRSUPrWpDtBRmo4sm+1yJpVJSxkcWRTrydi4s=; b=l4H7XquVsQMaO+cnUp4maxFu0J3jjked2jVMNznDE5wSGGUAT3lalKYRi5cYIr4hFi 1zUtv1qPRwE3UA/vPc24pJegTQ7U1REFqvzca4/VpctyLlxytydCaobZWny4MrSSdJUd RBf9CY1ZLCedhqpSRuZ4i5zZRV2bhI7GivRAgUupp9V4W7s6QghsOUPcFi0Fs1fM4zSE o7G89QtouQgdz+rLR/LUb8iLMFW9AQXsNs9P9/eFy49XQt0g+oocH3nPBRwQCV9c4j1H xqma1Ot23rw04UKaVNFWmDbRY+nmwYWbp4FcYbL1ojZ7aRXePHGYl+XnATYEps7TikBu xEJQ== MIME-Version: 1.0 X-Received: by 10.58.50.7 with SMTP id y7mr7593701ven.24.1364765738339; Sun, 31 Mar 2013 14:35:38 -0700 (PDT) In-Reply-To: <4455829d-5b4a-44ee-b65f-5f72d429ba9c@googlegroups.com> References: <37f23623-8bf5-421a-ab6a-34ff622c69f1@googlegroups.com> <2912c674-e30b-4339-9344-1f460cb96b23@googlegroups.com> <4455829d-5b4a-44ee-b65f-5f72d429ba9c@googlegroups.com> Date: Mon, 1 Apr 2013 08:35:38 +1100 Subject: Re: Help with python code! From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364765746 news.xs4all.nl 6943 [2001:888:2000:d::a6]:51680 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42417 On Mon, Apr 1, 2013 at 8:21 AM, jojo wrote: > Thanks for your replies. Just to be clear this is for a interview and they would like me to figure out what the code does and come back with some test cases That explains the utter lack of comments, then. In well-maintained code, you would simply read through the comments to get an idea of what it does. A couple of key things to look up: glob.glob and os.popen. When you know what they do, you should be able to get a broad understanding of the whole program. ChrisA