Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82339

Re: Python script isn't producing text in data file

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Python script isn't producing text in data file
Date 2014-12-11 15:38 +1100
References (2 earlier) <6da205c3-f6b9-411a-b880-0b0386ea09ac@googlegroups.com> <mailman.16833.1418262301.18130.python-list@python.org> <2e1114f0-2f7e-4397-9160-941bdfba01af@googlegroups.com> <mailman.16838.1418270105.18130.python-list@python.org> <6ed2a699-51ee-4e7b-9ae0-d2082fa4dc08@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.16841.1418272714.18130.python-list@python.org> (permalink)

Show all headers | View raw


Docfxit <docfxit@gmail.com> writes:

> Thank you all for the encouragement to make it smaller.

Even if only for the purpose of demonstrating the behaviour that you'd
like to discuss.

This doesn't necessarily mean changing the actual program you're working
on (though it might lead to that as a benefit).

> I don't know enough about Python to figure out how to isolate where
> the problem is happening.

If so, then here's a simple brute-force method:

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.

-- 
 \      “Properly read, the Bible is the most potent force for atheism |
  `\                                    ever conceived.” —Isaac Asimov |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 15:04 -0800
  Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 15:07 -0800
  Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 10:11 +1100
    Re: Python script isn't producing text in data file sohcahtoa82@gmail.com - 2014-12-10 17:32 -0800
      Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 12:44 +1100
        Re: Python script isn't producing text in data file Steven D'Aprano <steve@pearwood.info> - 2014-12-11 02:41 +0000
          Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 13:50 +1100
        Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 19:30 -0800
          Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 14:40 +1100
          Re: Python script isn't producing text in data file Ben Finney <ben+python@benfinney.id.au> - 2014-12-11 14:52 +1100
            Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 20:23 -0800
              Re: Python script isn't producing text in data file Chris Angelico <rosuav@gmail.com> - 2014-12-11 15:35 +1100
              Re: Python script isn't producing text in data file Ben Finney <ben+python@benfinney.id.au> - 2014-12-11 15:38 +1100
                Re: Python script isn't producing text in data file Grant Edwards <invalid@invalid.invalid> - 2014-12-11 05:22 +0000
              Re: Python script isn't producing text in data file Steven D'Aprano <steve@pearwood.info> - 2014-12-11 05:18 +0000
                Re: Python script isn't producing text in data file Tim Golden <mail@timgolden.me.uk> - 2014-12-11 06:07 +0000
              Re: Python script isn't producing text in data file alister <alister.nospam.ware@ntlworld.com> - 2014-12-11 09:16 +0000
              Re: Python script isn't producing text in data file Peter Otten <__peter__@web.de> - 2014-12-11 10:30 +0100
                Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-11 13:27 -0800
          Re: Python script isn't producing text in data file Grant Edwards <invalid@invalid.invalid> - 2014-12-11 05:19 +0000
            Re: Python script isn't producing text in data file alister <alister.nospam.ware@ntlworld.com> - 2014-12-11 09:06 +0000
  Re: Python script isn't producing text in data file Steven D'Aprano <steve@pearwood.info> - 2014-12-11 02:47 +0000
    Re: Python script isn't producing text in data file Docfxit <docfxit@gmail.com> - 2014-12-10 19:47 -0800

csiph-web