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


Groups > comp.lang.python > #60202

Re: Having trouble setting up an extremely simple server...

References <9e773107-5a6c-486b-bef2-186101d8f141@googlegroups.com> <roy-F7D4A2.21331321112013@news.panix.com> <ac9aae1d-b86c-4ea0-b41f-a044e053a932@googlegroups.com> <bf839pFtt6qU1@mid.individual.net>
Date 2013-11-22 15:30 +1100
Subject Re: Having trouble setting up an extremely simple server...
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3027.1385094624.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Nov 22, 2013 at 3:02 PM, Gregory Ewing
<greg.ewing@canterbury.ac.nz> wrote:
> Cilantro MC wrote:
>>
>> I prefer using the semicolons... They aren't making my code wrong... I use
>> other programming languages from time to time, and I'd rather just always
>> use
>> semicolons, as with the parentheses.
>
>
> It's your choice, but just be aware that other Python
> programmers reading your code will find it annoying,
> and it's not generally a good idea to annoy people
> that you're asking for help. :-)

Or, worse, to confuse us as to the purpose of your code. People here
are used to spotting bugs, and that bug-spotting is hugely aided by
certain conventions - many of which are laid out in PEP 8 [1], though
of course you don't need to follow all of those guidelines.

I'm a polyglot programmer, myself, so I completely understand your
desire to put semicolons around the place. Actually, my work in C/C++
and Pike, where semicolons are mandatory, isn't why I want to put them
in; no, it's because of JavaScript, where they're technically optional
but the omission can sometimes lead to misparsing of code - THAT is
where I'll be careful to put them in. Omit a semi in C? Simple
compilation error, almost certainly. Omit one in JS? Works
perfectly... or at least seems to. Omit them all in Python? Actually
genuinely works perfectly. :)

ChrisA

[1] http://www.python.org/dev/peps/pep-0008/

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


Thread

Having trouble setting up an extremely simple server... cilantromc@gmail.com - 2013-11-21 17:56 -0800
  Re: Having trouble setting up an extremely simple server... Roy Smith <roy@panix.com> - 2013-11-21 21:33 -0500
    Re: Having trouble setting up an extremely simple server... Cilantro MC <cilantromc@gmail.com> - 2013-11-21 18:36 -0800
      Re: Having trouble setting up an extremely simple server... Roy Smith <roy@panix.com> - 2013-11-21 21:50 -0500
      Re: Having trouble setting up an extremely simple server... Ned Batchelder <ned@nedbatchelder.com> - 2013-11-21 18:58 -0800
      Re: Having trouble setting up an extremely simple server... Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-11-22 17:02 +1300
        Re: Having trouble setting up an extremely simple server... Chris Angelico <rosuav@gmail.com> - 2013-11-22 15:30 +1100
      Re: Having trouble setting up an extremely simple server... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-11-22 05:32 +0000
        Re: Having trouble setting up an extremely simple server... rusi <rustompmody@gmail.com> - 2013-11-21 21:45 -0800
        Re: Having trouble setting up an extremely simple server... Roy Smith <roy@panix.com> - 2013-11-22 08:41 -0500
          Re: Having trouble setting up an extremely simple server... Chris Angelico <rosuav@gmail.com> - 2013-11-23 01:16 +1100

csiph-web