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


Groups > comp.lang.python > #82316 > unrolled thread

Python script isn't producing text in data file

Started byDocfxit <docfxit@gmail.com>
First post2014-12-10 15:04 -0800
Last post2014-12-10 19:47 -0800
Articles 3 on this page of 23 — 9 participants

Back to article view | Back to comp.lang.python


Contents

  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

Page 2 of 2 — ← Prev page 1 [2]


#82353

Fromalister <alister.nospam.ware@ntlworld.com>
Date2014-12-11 09:06 +0000
Message-ID<18diw.13368$607.12600@fx21.am4>
In reply to#82342
On Thu, 11 Dec 2014 05:19:44 +0000, Grant Edwards wrote:

> On 2014-12-11, Docfxit <docfxit@gmail.com> 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 would you like
>> me to post it on a pastebin?
> 
> You're going to need to create a _short_ example program that
> demonstrates the problem you're asking about.  It needs to be included
> in your post and fit in _one_ screen full.  A few people will look at
> longer examples, but your chances of the right person seeing it and
> figuring out your problem before their internal timer (or the one on the
> microwave) goes "ding!"  drop precipitously as it gets longer. Your
> chances approach 0 pretty fast if it requires following a URL to some
> site full of malware[1].
> 
> 
> [1] Yes, all sites are full of malware.

Also creating the shorter example will often reveal the subtle bug or 
design flaw that you are currently overlooking.
 
this is a good start towards diagnosing your own issue (& then of course 
people here will help if you are still having the problem)


-- 
You're too beautiful to ignore.  Too much woman.
		-- Kirk to Yeoman Rand, "The Enemy Within", stardate 
unknown

[toc] | [prev] | [next] | [standalone]


#82324

FromSteven D'Aprano <steve@pearwood.info>
Date2014-12-11 02:47 +0000
Message-ID<548905a9$0$2817$c3e8da3$76491128@news.astraweb.com>
In reply to#82316
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/CGPLogSummaryTest.py
Resolving theoffice.la... 75.79.6.149
Connecting to theoffice.la|75.79.6.149|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-12-11 13:41:26 ERROR 404: Not Found.


If the script is less than, say, 100 lines, please post it here directly 
in the body of your message. Make sure you post as PLAIN TEXT, not "rich 
text" (HTML), as rich text will destroy the formatting.

If the script is more than 100 lines, then please read this before 
posting:

http://sscce.org/

Even though it is written for Java programmers, it applies to any 
language. Please cut your code down to the smallest self-contained 
example that demonstrates the problem.

Doing so will have two benefits:

- it will increase the chances that you will find the bug yourself;

- and if you don't, it will increase the chances that others will 
  be willing to help you.




-- 
Steven

[toc] | [prev] | [next] | [standalone]


#82332

FromDocfxit <docfxit@gmail.com>
Date2014-12-10 19:47 -0800
Message-ID<99d5dd39-c3f5-455f-a335-8c1068841b7a@googlegroups.com>
In reply to#82324
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 post that file.  It should be this link:
http://theoffice.la/m/CGPLogSummaryTest.zip

But I am happy to put it any place anyone would like.

Thank you,

Docfxit

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.python


csiph-web