Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Python script isn't producing text in data file Date: Thu, 11 Dec 2014 05:22:21 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 24 Message-ID: References: <6da205c3-f6b9-411a-b880-0b0386ea09ac@googlegroups.com> <2e1114f0-2f7e-4397-9160-941bdfba01af@googlegroups.com> <6ed2a699-51ee-4e7b-9ae0-d2082fa4dc08@googlegroups.com> NNTP-Posting-Host: c-24-118-110-103.hsd1.mn.comcast.net X-Trace: reader1.panix.com 1418275341 23956 24.118.110.103 (11 Dec 2014 05:22:21 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Thu, 11 Dec 2014 05:22:21 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:82343 On 2014-12-11, Ben Finney wrote: > Docfxit writes: > >> Thank you all for the encouragement to make it smaller. > Begin with an empty program, and start constructing the behaviour > from scratch. Ignore anything else you want the program to do; focus > only on *this* behaviour which is confusing you. > > Add only those parts which seem to be related; remove them to verify > whether they're *actually* part of the problematic behaviour. > > Eventually you will have a small program which, if you take any part > away, does not exhibit the behaviour you want explained. And more often than not, you will figure out the answer to your problem while attempting to construct a suitably concise example of your problem. If you can clearly explain and demonstrate your problem, you're 90% of the way to fixing it. -- Grant