Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'programmer': 0.03; 'disclosure:': 0.09; 'statements': 0.09; 'language.': 0.14; 'semicolon': 0.16; 'subject:python': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'all,': 0.19; 'putting': 0.22; 'separate': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'strongly': 0.30; "i'm": 0.30; 'subject:end': 0.31; 'another': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'c++': 0.36; 'yours,': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'full': 0.61; 'dear': 0.65; 'between': 0.67; 'difference.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=tsVbzONZ9bnMfDz6MfPKND5yspnT5q4sHEkNuORIfZk=; b=XL+u8/+vQvByh/4fIge/VYlu4HXwBBixgbHsNoB5lXh+48GsTKT2kz2nN3ai88q2ur ZeNHQe/J7PWPFNxYu0Gge1I302HJRk779SESnNikIkuV2jSCFh2ORxfVJ8Jbu7PNATno 4ZuDOJALwrDU19IgoWlgSvCiU+r6vO2DBxjocDnI4eH1A1M7xU4SGh7cQCJaG8lO3f1v XjR3qNatYjcv+VW3ivb9rPOnwiCDMoyenpUIeH5qVlYREHodYtp9CCLFldanKddoD36F dv2tfqn2B4JvYgEJTIjPsdWZI7aYDxsFOAydrDEJ3g6eDjRua554/ivfsMXsovzk36yt 6hoQ== X-Received: by 10.49.38.73 with SMTP id e9mr711697qek.16.1377736718388; Wed, 28 Aug 2013 17:38:38 -0700 (PDT) Sender: Ned Batchelder Date: Wed, 28 Aug 2013 20:38:38 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: python-list@python.org Subject: Re: semicolon at end of python's statements References: <1377735506.18906.15.camel@debian> In-Reply-To: <1377735506.18906.15.camel@debian> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377736726 news.xs4all.nl 15908 [2001:888:2000:d::a6]:60134 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53201 On 8/28/13 8:18 PM, 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? There is no difference. The semicolon is unnecessary in Python. If you include them, people will know that you are still thinking in another language. Full disclosure: you can separate statements on a line with semicolons, but this practice is strongly discouraged. --Ned. > Yours, > Mohsen >