Re: Am I not seeing the Error?

2013-08-14 Thread Roy Smith
In article , Chris Angelico wrote: > On Wed, Aug 14, 2013 at 7:59 AM, Joshua Landau wrote: > > On 14 August 2013 02:20, Gregory Ewing wrote: > >> Ned Batchelder wrote: > >>> > >>> Everyone: this program seems to be a direct and misguided transliteration > >>> from a bash script. > >> > >> Not

Re: Am I not seeing the Error?

2013-08-14 Thread Joshua Landau
On 14 August 2013 13:07, Chris Angelico wrote: > On Wed, Aug 14, 2013 at 7:59 AM, Joshua Landau wrote: >> >> What's wrong with cat? Sure it's superfluous but what makes it *bad*? >> Personally I often prefer the pipe "cat x | y" form to "x < y"... or >> "< y x". > > What's the use of it, in that

Re: Am I not seeing the Error?

2013-08-14 Thread Chris Angelico
On Wed, Aug 14, 2013 at 7:59 AM, Joshua Landau wrote: > On 14 August 2013 02:20, Gregory Ewing wrote: >> Ned Batchelder wrote: >>> >>> Everyone: this program seems to be a direct and misguided transliteration >>> from a bash script. >> >> Not a particularly well-written bash script, either -- >>

Re: Am I not seeing the Error?

2013-08-14 Thread Joshua Landau
On 14 August 2013 02:20, Gregory Ewing wrote: > Ned Batchelder wrote: >> >> Everyone: this program seems to be a direct and misguided transliteration >> from a bash script. > > Not a particularly well-written bash script, either -- > it's full of superfluous uses of 'cat'. What's wrong with cat?

Re: Am I not seeing the Error?

2013-08-13 Thread Michael Torrie
On 08/13/2013 04:31 AM, Devyn Collier Johnson wrote: > For me, this style is easier to read. I have tried the "typical" style, > but I find this one to be easier. One thing I do know is that your style makes it very hard to find errors, even when the parser flags them. And the fact that you post

Re: Am I not seeing the Error?

2013-08-13 Thread Gregory Ewing
Ned Batchelder wrote: Everyone: this program seems to be a direct and misguided transliteration from a bash script. Not a particularly well-written bash script, either -- it's full of superfluous uses of 'cat'. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I not seeing the Error?

2013-08-13 Thread Ned Batchelder
On 8/13/13 5:16 PM, Dave Angel wrote: Denis McMahon wrote: On Sat, 10 Aug 2013 22:19:23 -0400, Devyn Collier Johnson wrote: I am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. JOB_WRITEURGFILES = mul

Re: Am I not seeing the Error?

2013-08-13 Thread MRAB
On 13/08/2013 21:28, Denis McMahon wrote: On Sat, 10 Aug 2013 22:19:23 -0400, Devyn Collier Johnson wrote: I am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. JOB_WRITEURGFILES = multiprocessing.Proc

Re: Am I not seeing the Error?

2013-08-13 Thread Dave Angel
Denis McMahon wrote: > On Sat, 10 Aug 2013 22:19:23 -0400, Devyn Collier Johnson wrote: > >> I am checking my 1292-line script for syntax errors. I ran the following >> commands in a terminal to check for errors, but I do not see the error. > >> JOB_WRITEURGFILES = >> multiprocessing.Process(write

Re: Am I not seeing the Error?

2013-08-13 Thread Denis McMahon
On Sat, 10 Aug 2013 22:19:23 -0400, Devyn Collier Johnson wrote: > I am checking my 1292-line script for syntax errors. I ran the following > commands in a terminal to check for errors, but I do not see the error. > JOB_WRITEURGFILES = > multiprocessing.Process(write2file('./mem/ENGINE_PID', ENGI

Re: Am I not seeing the Error?

2013-08-13 Thread Terry Reedy
On 8/13/2013 6:31 AM, Devyn Collier Johnson wrote: I now see why this programming style is called trolling. 'Trolling' is a posting style. Your initial post was legitimate. When the first three respondents missed the syntax error, ';' instead of ',' within function() calls, I reported it. Y

Re: Am I not seeing the Error?

2013-08-13 Thread Grant Edwards
On 2013-08-13, Joshua Landau wrote: > On 12 August 2013 16:47, Roy Smith wrote: >> I can't quite sort out the multiple quoting levels, but somebody said: >> > Programming like that is called trolling. A programmer that uses > trolling is called a troll. A troll can also refer to such a li

Re: Am I not seeing the Error?

2013-08-13 Thread Robert Kern
On 2013-08-13 11:31, Devyn Collier Johnson wrote: I now see why this programming style is called trolling. This programming style is not called "trolling". It does not have a name. It's just your particular style. I think you misinterpreted someone who accused you of deliberately coding in t

Re: Am I not seeing the Error?

2013-08-13 Thread Devyn Collier Johnson
On 08/13/2013 04:50 AM, Steven D'Aprano wrote: On Tue, 13 Aug 2013 09:19:07 +0100, Joshua Landau wrote: On 12 August 2013 16:47, Roy Smith wrote: I can't quite sort out the multiple quoting levels, but somebody said: Programming like that is called trolling. A programmer that uses trolling

Re: Am I not seeing the Error?

2013-08-13 Thread Steven D'Aprano
On Tue, 13 Aug 2013 09:19:07 +0100, Joshua Landau wrote: > On 12 August 2013 16:47, Roy Smith wrote: >> I can't quite sort out the multiple quoting levels, but somebody said: >> > Programming like that is called trolling. A programmer that uses > trolling is called a troll. A troll can al

Re: Am I not seeing the Error?

2013-08-13 Thread Joshua Landau
On 12 August 2013 16:47, Roy Smith wrote: > I can't quite sort out the multiple quoting levels, but somebody said: > Programming like that is called trolling. A programmer that uses trolling is called a troll. A troll can also refer to such a line of code itself. My scripts contain

Re: Am I not seeing the Error?

2013-08-12 Thread Ned Batchelder
On 8/12/13 4:16 PM, Devyn Collier Johnson wrote: On 08/12/2013 12:56 PM, Joel Goldstick wrote: On Mon, Aug 12, 2013 at 11:47 AM, Roy Smith wrote: I can't quite sort out the multiple quoting levels, but somebody said: Programming like that is called trolling. A programmer that uses trolling

Re: Am I not seeing the Error?

2013-08-12 Thread Joel Goldstick
On Mon, Aug 12, 2013 at 4:16 PM, Devyn Collier Johnson wrote: > > On 08/12/2013 12:56 PM, Joel Goldstick wrote: >> >> On Mon, Aug 12, 2013 at 11:47 AM, Roy Smith wrote: >>> >>> I can't quite sort out the multiple quoting levels, but somebody said: >>> >> Programming like that is called trolli

Re: Am I not seeing the Error?

2013-08-12 Thread Devyn Collier Johnson
On 08/12/2013 12:56 PM, Joel Goldstick wrote: On Mon, Aug 12, 2013 at 11:47 AM, Roy Smith wrote: I can't quite sort out the multiple quoting levels, but somebody said: Programming like that is called trolling. A programmer that uses trolling is called a troll. A troll can also refer to such

Re: Am I not seeing the Error?

2013-08-12 Thread Chris Angelico
On Mon, Aug 12, 2013 at 5:56 PM, Joel Goldstick wrote: > If you like semicolons, use another language that needs them. > I think you think it is some version of premature optimization. Since > you are a novice at the language, stick with the standards, and learn > to embrace them. I'm a C progra

Re: Am I not seeing the Error?

2013-08-12 Thread Joel Goldstick
On Mon, Aug 12, 2013 at 11:47 AM, Roy Smith wrote: > I can't quite sort out the multiple quoting levels, but somebody said: > Programming like that is called trolling. A programmer that uses trolling is called a troll. A troll can also refer to such a line of code itself. My scripts

Re: Am I not seeing the Error?

2013-08-12 Thread Roy Smith
I can't quite sort out the multiple quoting levels, but somebody said: >>> Programming like that is called trolling. A programmer that uses >>> trolling is called a troll. A troll can also refer to such a line >>> of code itself. My scripts contain a lot of trolls. It is easier >>> for me to re

Re: Am I not seeing the Error?

2013-08-12 Thread Zachary Ware
On Mon, Aug 12, 2013 at 10:37 AM, Zachary Ware wrote: > [snip my last reply with a few code samples] My apologies for Gmail's mangling of my samples. Any code that is not indented should be on the previous line. -- Zach -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I not seeing the Error?

2013-08-12 Thread Zachary Ware
On Mon, Aug 12, 2013 at 9:04 AM, Devyn Collier Johnson wrote: > > Zachary, are you, Ned, and Terry trying to say the syntax should be > > job = multiprocessing.Process(func1(), func2()) > > not > > job = multiprocessing.Process(func1(); func2()) > Basically, yes. The first option there is equiva

Re: Am I not seeing the Error?

2013-08-12 Thread John Gordon
In Devyn Collier Johnson writes: > I am checking my 1292-line script for syntax errors. I ran the following > commands in a terminal to check for errors, but I do not see the error. >File "./beta_engine", line 344 > JOB_WRITEURGFILES = > multiprocessing.Process(write2file('./mem/ENG

Re: Am I not seeing the Error?

2013-08-12 Thread Devyn Collier Johnson
On 08/12/2013 09:20 AM, Zachary Ware wrote: On Mon, Aug 12, 2013 at 7:33 AM, Devyn Collier Johnson wrote: On 08/10/2013 10:47 PM, Chris Angelico wrote: On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith wrote: In article , Chris Angelico wrote: When you get a syntax error you can't understand

Re: Am I not seeing the Error?

2013-08-12 Thread Ned Batchelder
On 8/12/13 8:33 AM, Devyn Collier Johnson wrote: On 08/10/2013 10:47 PM, Chris Angelico wrote: On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith wrote: In article , Chris Angelico wrote: When you get a syntax error you can't understand, look at the previous line of code. Perhaps something ther

Re: Am I not seeing the Error?

2013-08-12 Thread Zachary Ware
On Mon, Aug 12, 2013 at 7:33 AM, Devyn Collier Johnson wrote: > > On 08/10/2013 10:47 PM, Chris Angelico wrote: >> >> On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith wrote: >>> >>> In article , >>> Chris Angelico wrote: >>> When you get a syntax error you can't understand, look at the previous

Re: Am I not seeing the Error?

2013-08-12 Thread Devyn Collier Johnson
On 08/10/2013 10:47 PM, Chris Angelico wrote: On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith wrote: In article , Chris Angelico wrote: When you get a syntax error you can't understand, look at the previous line of code. Perhaps something there is incomplete; maybe you have mismatched parenthe

Re: Am I not seeing the Error?

2013-08-11 Thread Roy Smith
In article <52074b43$0$3$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > On Sun, 11 Aug 2013 03:33:52 +0100, Chris Angelico wrote: > > > Next thing to do is split it into more lines. Why is all that in a > > single line? > > The only good excuse for writing multiple statement

Re: Am I not seeing the Error?

2013-08-11 Thread Joshua Landau
On 11 August 2013 09:28, Steven D'Aprano wrote: > into more lines. Why is all that in a >> single line? > > The only good excuse for writing multiple statements on a single line > separated by semi-colons is if the Enter key on your keyboard is broken. That's not a good excuse. It *is* a good ex

Re: Am I not seeing the Error?

2013-08-11 Thread Steven D'Aprano
On Sun, 11 Aug 2013 03:33:52 +0100, Chris Angelico wrote: > Next thing to do is split it into more lines. Why is all that in a > single line? The only good excuse for writing multiple statements on a single line separated by semi-colons is if the Enter key on your keyboard is broken. :-) --

Re: Am I not seeing the Error?

2013-08-10 Thread Terry Reedy
On 8/10/2013 10:19 PM, Devyn Collier Johnson wrote: I am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m py_compile ./beta_engine File "./beta_en

Re: Am I not seeing the Error?

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 3:43 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> When you get a syntax error you can't understand, look at the previous >> line of code. Perhaps something there is incomplete; maybe you have >> mismatched parentheses, so this line is considered to be

Re: Am I not seeing the Error?

2013-08-10 Thread Roy Smith
In article , Chris Angelico wrote: > When you get a syntax error you can't understand, look at the previous > line of code. Perhaps something there is incomplete; maybe you have > mismatched parentheses, so this line is considered to be part of the > same expression. > > Next thing to do is spl

Re: Am I not seeing the Error?

2013-08-10 Thread Chris Angelico
On Sun, Aug 11, 2013 at 3:19 AM, Devyn Collier Johnson wrote: > am checking my 1292-line script for syntax errors. I ran the following > commands in a terminal to check for errors, but I do not see the error. > > collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m py_compile > ./beta_engine >

Am I not seeing the Error?

2013-08-10 Thread Devyn Collier Johnson
I am checking my 1292-line script for syntax errors. I ran the following commands in a terminal to check for errors, but I do not see the error. collier@Nacho-Laptop:/media/collier/AI/Pysh$ python3 -m py_compile ./beta_engine File "./beta_engine", line 344 JOB_WRITEURGFILES = multiproce