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


Groups > comp.lang.python > #53197

Re: semicolon at end of python's statements

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'programmer': 0.03; 'subsequent': 0.05; 'parser': 0.07; 'mind,': 0.09; 'statements': 0.09; 'useless': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'omitting': 0.16; 'python;': 0.16; 'semicolon': 0.16; 'syntactic': 0.16; 'subject:python': 0.16; 'elements': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'all,': 0.19; 'thu,': 0.19; 'aug': 0.22; 'putting': 0.22; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'wonder': 0.29; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; "i'm": 0.30; 'subject:end': 0.31; 'programmers': 0.33; "who's": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'c++': 0.36; 'ends': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'new': 0.61; "you're": 0.61; 'dear': 0.65; 'between': 0.67; '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 :content-type; bh=8DMFK7mXbgFbLNkMFWGEPx53qt6b6C5KHrR5YYHZ6KQ=; b=yIhZoSnCMBCX2zcwmONtg2OXo/hzrcH8/uwz+ESlB5uMHJPjtulVGwOEvuJN8sA2bi yU7BljF6wIsgazgqE7p2TmfDniK/Qk1WAlI+PVfLy/UbQzaf3JQ/wzPbvb0trwCs96r8 9ywY0ueZtMoyDFCiG74eVD/6vYME9t81zXh3xghDExUPbJWvlGU8Ss6x3dxO8X6fzhYS YfvXErgfgDAUnCkZlBgDs5Vwc4VnP97qSMETDnHDpjk9lPLEMEuYkRXas2IK+Wk3gFw6 GFdqbyLb/wyWBO09LoWP+mlSrurctTbPdB2lOsaXIIDWNHD+OpZixBkWr7Ro+4Qnd0PR 0vBA==
MIME-Version 1.0
X-Received by 10.58.249.136 with SMTP id yu8mr345576vec.37.1377736278059; Wed, 28 Aug 2013 17:31:18 -0700 (PDT)
In-Reply-To <1377735506.18906.15.camel@debian>
References <1377735506.18906.15.camel@debian>
Date Thu, 29 Aug 2013 10:31:17 +1000
Subject Re: semicolon at end of python's statements
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.333.1377736286.19984.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377736286 news.xs4all.nl 15942 [2001:888:2000:d::a6]:49773
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53197

Show key headers only | View raw


On Thu, Aug 29, 2013 at 10:18 AM, Mohsen Pahlevanzadeh
<mohsen@pahlevanzadeh.org> wrote:
> Dear all,
>
> I'm C++ programmer and unfortunately put semicolon at end of my
> statements in python.
>
> Quesion:
> What's really defferences between putting semicolon and don't put?

Very little. Putting the semicolon makes you look like a C programmer
who's new to Python; omitting it makes you look like you actually
understand Python :)

As a C and C++ programmer myself, I know where you're coming from, but
putting semicolons at the ends of Python statements is as useless as
putting ((((lots of (((irritating (((superfluous
(((parentheses))))))))))))) in your C++ code. The parser won't mind,
but subsequent programmers will wonder what these unnecessary
syntactic elements are for.

ChrisA

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


Thread

Re: semicolon at end of python's statements Chris Angelico <rosuav@gmail.com> - 2013-08-29 10:31 +1000
  Re: semicolon at end of python's statements Duncan Booth <duncan.booth@invalid.invalid> - 2013-09-05 11:33 +0000
    Re: semicolon at end of python's statements Chris Angelico <rosuav@gmail.com> - 2013-09-05 22:02 +1000
    Re: semicolon at end of python's statements Grant Edwards <invalid@invalid.invalid> - 2013-09-05 14:04 +0000
    Re: semicolon at end of python's statements Jeremy Sanders <jeremy@jeremysanders.net> - 2013-09-05 16:05 +0200
    Re: semicolon at end of python's statements Chris Angelico <rosuav@gmail.com> - 2013-09-06 00:13 +1000
      Re: semicolon at end of python's statements Duncan Booth <duncan.booth@invalid.invalid> - 2013-09-05 15:15 +0000

csiph-web