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


Groups > comp.lang.python > #52429

Re: Am I not seeing the Error?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'programmer': 0.03; 'subject:not': 0.03; 'read.': 0.03; 'string.': 0.05; 'debugging': 0.07; 'plenty': 0.07; 'purpose.': 0.07; 'subject:Error': 0.07; 'arguments': 0.09; 'arguments,': 0.09; 'collier': 0.09; 'statements': 0.09; 'stating': 0.09; 'style.': 0.09; 'sure,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language,': 0.12; 'itself.': 0.14; "'');": 0.16; 'expression,': 0.16; 'levels,': 0.16; 'roy': 0.16; 'spacing': 0.16; 'troll': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'trying': 0.19; 'work,': 0.20; '>>>': 0.22; 'code,': 0.22; 'programming': 0.22; 'aug': 0.22; 'coding': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'creating': 0.23; 'stick': 0.24; 'why.': 0.24; 'mon,': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'read,': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'room': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'easier': 0.31; 'serve': 0.31; 'that.': 0.31; 'fixing': 0.31; 'styles': 0.31; 'supposed': 0.32; 'another': 0.32; 'quite': 0.32; 'url:python': 0.33; 'alone': 0.33; 'style': 0.33; 'subject:the': 0.34; "can't": 0.35; 'except': 0.35; 'something': 0.35; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'skip:j 20': 0.36; 'url:listinfo': 0.36; 'useful': 0.36; 'subject:?': 0.36; 'similar': 0.36; 'url:org': 0.36; 'example,': 0.37; 'half': 0.37; 'somebody': 0.38; 'handle': 0.38; 'fact': 0.38; 'pm,': 0.38; '12,': 0.39; 'enough': 0.39; 'called': 0.40; 'url:mail': 0.40; 'how': 0.40; 'read': 0.60; 'life,': 0.60; 'problems.': 0.60; 'tell': 0.60; 'first': 0.61; 'show': 0.63; 'personal': 0.63; 'such': 0.63; 'refer': 0.63; 'to:addr:gmail.com': 0.65; 'between': 0.67; 'said:': 0.68; 'skip:m 50': 0.68; 'smith': 0.68; 'caused': 0.69; 'embrace': 0.84; 'premature': 0.84; 'standards,': 0.84; 'dozen': 0.91; 'joel': 0.91; 'novice': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZpR5Y63rNig2kZTO4ygFANTxUikRcF7rgNFEU6fKBWE=; b=Oc3ltvaVlPx0yzp+q/RPGLmhDaZMjSFUHQ82ghuEZFw3oCUZPE1xsKh5bhMz1Uc4x8 ZS2ESGofP2AMNNc8eaohrgISB+frfv26al/fYwfa0q8SzI2tcJxAossbug1950ynUvcI FvnhO6nEnfZIJKkFQOAmk8W11cQeyNWD8py19ifPnx6BLy25b+QL/7XGl1GaSbS3mwM+ o0lVZ//Xl9gePUIqYIRhjiWnqqCamUbCCQ0uI8R0O5SU9tQc09GoqN9GsXMaS7+Os/yy wIK1PkWtLtzAJvx9eMhipXcffnZCp6Evz8BwlDYCQ92QKnaSzL5IatI8T5kieoC8FbI2 W1/w==
MIME-Version 1.0
X-Received by 10.220.45.132 with SMTP id e4mr97706vcf.56.1376339693957; Mon, 12 Aug 2013 13:34:53 -0700 (PDT)
In-Reply-To <52094284.2080403@Gmail.com>
References <5206F4AB.8050204@Gmail.com> <mailman.452.1376188442.1251.python-list@python.org> <roy-4A9C13.22431010082013@news.panix.com> <CAPTjJmoA+r3ABByjgMNC-23H0tB95r6S+d04T-KF-3xgbCNSOQ@mail.gmail.com> <5208D625.2000103@Gmail.com> <CAKJDb-P-TEqmGV45dbayaLdqh2nXE_FyLbd4dk7CPpcTsFWciQ@mail.gmail.com> <mailman.500.1376316293.1251.python-list@python.org> <roy-7AC408.11471812082013@news.panix.com> <CAPM-O+zh9rU1-krcwHcaUgKTqkgWh1qB8czLNL8kP51Z9Aa7YA@mail.gmail.com> <52094284.2080403@Gmail.com>
Date Mon, 12 Aug 2013 16:34:53 -0400
Subject Re: Am I not seeing the Error?
From Joel Goldstick <joel.goldstick@gmail.com>
To Devyn Collier Johnson <devyncjohnson@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc Python Mailing List <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.511.1376339696.1251.python-list@python.org> (permalink)
Lines 79
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1376339696 news.xs4all.nl 15981 [2001:888:2000:d::a6]:42457
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52429

Show key headers only | View raw


On Mon, Aug 12, 2013 at 4:16 PM, Devyn Collier Johnson
<devyncjohnson@gmail.com> wrote:
>
> On 08/12/2013 12:56 PM, Joel Goldstick wrote:
>>
>> On Mon, Aug 12, 2013 at 11:47 AM, Roy Smith <roy@panix.com> 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 a lot of trolls. It is easier
>>>>>> for me to read trolls than "typical" coding styles.
>>>
>>> Please tell me this is all just an elaborate joke.
>>
>> I was thinking something similar Roy.  Devyn, you may think you code
>> differently, but you don't.  You have a half of dozen people trying to
>> show you how your style causes confusion between what you think you
>> are writing and what you actually coded.  There is plenty of room in
>> coding for personal expression, but what you call 'trolling' is not
>> that.  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.  Ultimately standard coding styles has nothing to do
>> with code optimization.  It has to do with readability.  Although this
>> is a small example, you can see that if several people get involved
>> debugging it, the first thing that gets in the way is your
>> non-standard coding style.  If you want to code alone your whole life,
>> do as you like.  But the time spent reading and fixing code in the
>> lifetime of any useful software system is greater than the time spent
>> creating the original code.
>>>
>>> --
>>> http://mail.python.org/mailman/listinfo/python-list
>>
>>
>>
>
> I know using semicolons will not optimize the code, but it is actually
> easier for me to read. I can handle such code better than spacing it out.

Except it doesn't make it easier to read.


JOB_WRITEURGFILES =
multiprocessing.Process(write2file('./mem/ENGINE_PID', ENGINEPID);
write2file(SENTEMPPATH, ''); write2file(INPUTMEM, ''));
JOB_WRITEURGFILES.start()

As I understand it the above line of code caused you problems.  I
don't know what muliprocessing.Process() is supposed to have as
arguments, but I don't think is can have arguments with semicolons,
unless they appeared in a string.

So your semicolons, that you insist make your code easier to read,
have made code that doesn't work, and you don't know why.  All I am
saying is you are stating a fact not in evidence.  You only think the
semicolons are useful because you haven't taken the time to read and
write enough python code to appreciate that they are not only not
helpful, but they serve no useful purpose.  Sure, they allow you to
put several statements on a single line.  But that isn't what you were
doing.

good luck.  I can see you are interested.  keep at it.




>
> DCJ
> --
> http://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-11 03:33 +0100
  Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-10 22:43 -0400
    Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-11 03:47 +0100
    Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-12 08:33 -0400
    Re: Am I not seeing the Error? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-08-12 08:20 -0500
    Re: Am I not seeing the Error? Ned Batchelder <ned@nedbatchelder.com> - 2013-08-12 10:01 -0400
    Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-12 10:04 -0400
      Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-12 11:47 -0400
        Re: Am I not seeing the Error? Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-12 12:56 -0400
        Re: Am I not seeing the Error? Chris Angelico <rosuav@gmail.com> - 2013-08-12 18:19 +0100
        Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-12 16:16 -0400
        Re: Am I not seeing the Error? Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-12 16:34 -0400
        Re: Am I not seeing the Error? Ned Batchelder <ned@nedbatchelder.com> - 2013-08-12 16:35 -0400
        Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-13 09:19 +0100
          Re: Am I not seeing the Error? Steven D'Aprano <steve@pearwood.info> - 2013-08-13 08:50 +0000
            Re: Am I not seeing the Error? Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-13 06:31 -0400
            Re: Am I not seeing the Error? Robert Kern <robert.kern@gmail.com> - 2013-08-13 13:11 +0100
            Re: Am I not seeing the Error? Terry Reedy <tjreedy@udel.edu> - 2013-08-13 12:12 -0400
            Re: Am I not seeing the Error? Michael Torrie <torriem@gmail.com> - 2013-08-13 19:55 -0600
          Re: Am I not seeing the Error? Grant Edwards <invalid@invalid.invalid> - 2013-08-13 13:55 +0000
    Re: Am I not seeing the Error? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-08-12 10:37 -0500
    Re: Am I not seeing the Error? Zachary Ware <zachary.ware+pylist@gmail.com> - 2013-08-12 10:47 -0500
  Re: Am I not seeing the Error? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-11 08:28 +0000
    Re: Am I not seeing the Error? Joshua Landau <joshua@landau.ws> - 2013-08-11 11:18 +0100
    Re: Am I not seeing the Error? Roy Smith <roy@panix.com> - 2013-08-11 09:27 -0400

csiph-web