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

References <1377735506.18906.15.camel@debian>
Date 2013-08-29 10:31 +1000
Subject Re: semicolon at end of python's statements
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.333.1377736286.19984.python-list@python.org> (permalink)

Show all headers | 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