Python script isn't producing text in data file

Grant Edwards invalid at invalid.invalid
Thu Dec 11 00:22:21 EST 2014


On 2014-12-11, Ben Finney <ben+python at benfinney.id.au> wrote:
> Docfxit <docfxit at gmail.com> 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



More information about the Python-list mailing list