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

2014-12-11 Thread Docfxit
On Thursday, December 11, 2014 1:32:02 AM UTC-8, Peter Otten wrote: > Docfxit wrote: > > > I don't know enough about Python to figure out how to isolate where the > > problem is happening. > > Can you get hold of the person who wrote the script? No. I tried. They are not answering their email.

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

2014-12-11 Thread Peter Otten
Docfxit wrote: > I don't know enough about Python to figure out how to isolate where the > problem is happening. Can you get hold of the person who wrote the script? -- https://mail.python.org/mailman/listinfo/python-list

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

2014-12-11 Thread alister
On Wed, 10 Dec 2014 20:23:56 -0800, Docfxit wrote: > On Wednesday, December 10, 2014 7:55:17 PM UTC-8, Ben Finney wrote: >> Docfxit writes: >> >> > I am happy to paste it into a post. The reason I didn't is because >> > it's very large. The Python script is 1239 lines long. >> >> That's too l

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

2014-12-11 Thread alister
On Thu, 11 Dec 2014 05:19:44 +, Grant Edwards wrote: > On 2014-12-11, Docfxit wrote: > >> I am happy to paste it into a post. The reason I didn't is because >> it's very large. The Python script is 1239 lines long. The example >> summary is 105 lines long. The input log is 6810 lines lon

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

2014-12-10 Thread Tim Golden
On 11/12/2014 05:18, Steven D'Aprano wrote: (I think it is funny that the script has a Unix "hash-bang" line at the top of the script, but is written such that it will only work on Windows.) I didn't look at the code, but responding only to your comment... Since the introduction of the PEP397

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

2014-12-10 Thread Grant Edwards
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

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

2014-12-10 Thread Steven D'Aprano
On Wed, 10 Dec 2014 20:23:56 -0800, Docfxit wrote: > I don't know enough about Python to figure out how to isolate where the > problem is happening. Ouch! You have my sympathies. Nevertheless, I'm not going to run your code to see what it does. Even if I trusted it, and I don't, I can see that

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

2014-12-10 Thread Grant Edwards
On 2014-12-11, Docfxit wrote: > I am happy to paste it into a post. The reason I didn't is because > it's very large. The Python script is 1239 lines long. The example > summary is 105 lines long. The input log is 6810 lines long. > > Are you sure you want me to post all of that here? Or wou

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

2014-12-10 Thread Ben Finney
Docfxit 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 k

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

2014-12-10 Thread Chris Angelico
On Thu, Dec 11, 2014 at 3:23 PM, Docfxit wrote: > Thank you all for the encouragement to make it smaller. > I don't know enough about Python to figure out how to isolate where the > problem is happening. > > Maybe it would be best If I could get some help in getting a debugger working > so I can

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

2014-12-10 Thread Docfxit
On Wednesday, December 10, 2014 7:55:17 PM UTC-8, Ben Finney wrote: > Docfxit writes: > > > I am happy to paste it into a post. The reason I didn't is because > > it's very large. The Python script is 1239 lines long. > > That's too long to direct us toward, no matter where you put it. > > Yo

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

2014-12-10 Thread Ben Finney
Docfxit writes: > I am happy to paste it into a post. The reason I didn't is because > it's very large. The Python script is 1239 lines long. That's too long to direct us toward, no matter where you put it. Your task, then, is to construct a *much* smaller and simpler example that still demon

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

2014-12-10 Thread Docfxit
On Wednesday, December 10, 2014 6:47:17 PM UTC-8, Steven D'Aprano wrote: > On Wed, 10 Dec 2014 15:04:52 -0800, Docfxit wrote: > > > This is the Python Script that I'm having trouble with: > > http://theoffice.la/m/CGPLogSummaryTest.py > > Link is broken: > Steven I'm very sorry. I didn't mean to

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

2014-12-10 Thread Chris Angelico
On Thu, Dec 11, 2014 at 2:30 PM, Docfxit wrote: > I am happy to paste it into a post. The reason I didn't is because it's very > large. The Python script is 1239 lines long. > The example summary is 105 lines long. > The input log is 6810 lines long. > > Are you sure you want me to post all of

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

2014-12-10 Thread Docfxit
On Wednesday, December 10, 2014 5:45:14 PM UTC-8, Chris Angelico wrote: > On Thu, Dec 11, 2014 at 12:32 PM, wrote: > > On Wednesday, December 10, 2014 3:11:28 PM UTC-8, Chris Angelico wrote: > >> On Thu, Dec 11, 2014 at 10:04 AM, Docfxit wrote: > >> > This is the Python Script that I'm having tr

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

2014-12-10 Thread Steven D'Aprano
On Wed, 10 Dec 2014 15:04:52 -0800, Docfxit wrote: > This is the Python Script that I'm having trouble with: > http://theoffice.la/m/CGPLogSummaryTest.py Link is broken: steve@runes:~$ wget http://theoffice.la/m/CGPLogSummaryTest.py --2014-12-11 13:41:26-- http://theoffice.la/m/CGPLogSummaryTes

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

2014-12-10 Thread Chris Angelico
On Thu, Dec 11, 2014 at 1:41 PM, Steven D'Aprano wrote: > On Thu, 11 Dec 2014 12:44:51 +1100, Chris Angelico wrote: > >> Agreed. There are ways around some of those problems (eg using wget to >> fetch something, and then looking at it in a text editor - it's hard to >> get pwned through a text edi

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

2014-12-10 Thread Steven D'Aprano
On Thu, 11 Dec 2014 12:44:51 +1100, Chris Angelico wrote: > Agreed. There are ways around some of those problems (eg using wget to > fetch something, and then looking at it in a text editor - it's hard to > get pwned through a text editor... though I won't say impossible), but > there are other is

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

2014-12-10 Thread Chris Angelico
On Thu, Dec 11, 2014 at 12:32 PM, wrote: > On Wednesday, December 10, 2014 3:11:28 PM UTC-8, Chris Angelico wrote: >> On Thu, Dec 11, 2014 at 10:04 AM, Docfxit wrote: >> > This is the Python Script that I'm having trouble with: >> > http://theoffice.la/m/CGPLogSummaryTest.py >> > >> > If I haven

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

2014-12-10 Thread sohcahtoa82
On Wednesday, December 10, 2014 3:11:28 PM UTC-8, Chris Angelico wrote: > On Thu, Dec 11, 2014 at 10:04 AM, Docfxit wrote: > > This is the Python Script that I'm having trouble with: > > http://theoffice.la/m/CGPLogSummaryTest.py > > > > If I haven't provided enough information please let me know.

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

2014-12-10 Thread Chris Angelico
On Thu, Dec 11, 2014 at 10:04 AM, Docfxit wrote: > This is the Python Script that I'm having trouble with: > http://theoffice.la/m/CGPLogSummaryTest.py > > If I haven't provided enough information please let me know. It'd be better to include the code in the body of your email. You never know whe

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

2014-12-10 Thread Docfxit
On Wednesday, December 10, 2014 3:05:07 PM UTC-8, Docfxit wrote: > I have a Python script that runs with no errors but it doesn't produce the > output it should in a text file. I can't figure out why. Is this the correct > forum to post this in or can someone suggest a more appropriate forum? >