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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Aug 29, 2013 at 10:18 AM, Mohsen Pahlevanzadeh 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