Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'value,': 0.04; 'subject:Python': 0.06; 'already.': 0.09; 'mixed': 0.09; 'oh,': 0.09; 'whole,': 0.09; 'subject:How': 0.10; 'cc:addr:python- list': 0.11; 'python': 0.11; 'language,': 0.12; 'language.': 0.14; 'cc:name:python list': 0.16; 'elsewhere.': 0.16; 'graceful.': 0.16; 'semantics': 0.16; 'tuple': 0.16; 'wrote:': 0.18; 'wed,': 0.18; "python's": 0.19; 'seems': 0.21; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'decorators': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'feature': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; '(unless': 0.31; 'pascal': 0.31; 'languages': 0.32; 'another': 0.32; 'quite': 0.32; 'core': 0.34; 'basic': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'var': 0.36; 'method': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'list.': 0.37; 'kind': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'beautiful': 0.68; 'useful.': 0.68; 'obvious': 0.74; 'sweet': 0.74; 'hand,': 0.93; 'imagine': 0.93; '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 :cc:content-type; bh=kJ6Eh8p84NUcXjzQsXqDYD7QVQEzu72e5tPxph4kIjk=; b=l+w6EvgsC/XyOC4Tca5eoUfMNbirzvcoNukfS5RhT+S+k4hfEnh/VR0tWYbgDj+c2k sGzKQH9mLtrE1OvNKUqzsYVveRRRLlrPTQ38WxTPDBL/Sa3qVuANLZrVYa0bUH6le1f3 Wqb6XryF042BGdeOd28GmVRus7lxo/h72wpiqt2fVRqb+B0QCPyrzSSbm/hdpCxFQgPX yA0/zM7sUAj5O/nRjMMZbjatotSvO0ab4GSTQlXiKtvVDcn5GiWfkGWy0QgIMEyeeML/ S8rgDaaHs9ZD/vNboEO121UHRVSXvi6nBWdyKdROasB8+L/9VWGrNOl9zTyRq71DQF5Z qh2g== MIME-Version: 1.0 X-Received: by 10.49.75.99 with SMTP id b3mr5776179qew.11.1369873488532; Wed, 29 May 2013 17:24:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 29 May 2013 17:24:48 -0700 Subject: Re: How clean/elegant is Python's syntax? From: Dan Stromberg To: Ma Xiaojun Content-Type: multipart/alternative; boundary=047d7bd752f6abf47104dde4865a Cc: Python List 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: 64 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369873497 news.xs4all.nl 15939 [2001:888:2000:d::a6]:60988 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46421 --047d7bd752f6abf47104dde4865a Content-Type: text/plain; charset=ISO-8859-1 On Wed, May 29, 2013 at 11:13 AM, Ma Xiaojun wrote: > Hi, list. > > For the core language, I have mixed feeling. On one hand, I find that > Python has some sweet feature that is quite useful. On the other hand, > I often find Pyhton snippets around hard to understand. I admit that I > never learned Python very formally; I've programmed in many other > languages already. > > Code snippets in BASIC or Pascal seems quite obvious to understand > (Unless I don't understand the algorithm) . > I'm finding it kind of hard to imagine not finding Python's syntax and semantics pretty graceful. About the only thing I don't like is: var = 1, That binds var to a tuple (singleton) value, instead of 1. Oh, and method decorators seem much more complex than they should've been. But on the whole, python is a pretty beautiful language. It's not just another rehash of Pascal though; if that's what you want you might be better off looking elsewhere. --047d7bd752f6abf47104dde4865a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Wed, May 29, 2013 at 11:13 AM, Ma Xiaojun <damage3025@gmail.com= > wrote:
Hi, list.

For the core language, I have mixed feeling. On one hand, I find that
Python has some sweet feature that is quite useful. On the other hand,
I often find Pyhton snippets around hard to understand. I admit that I
never learned Python very formally; I've programmed in many other
languages already.

Code snippets in BASIC or Pascal seems quite obvious to understand
(Unless I don't understand the algorithm) .

I'= ;m finding it kind of hard to imagine not finding Python's syntax and s= emantics pretty graceful.

About the only thing I don't like is:

=A0=A0 var =3D 1,
<= br>
That binds var to a tuple (singleton) value, instead of 1.

Oh, and method decorators seem much more complex= than they should've been.

But on the whole, python is a pretty beautiful language.=A0 = It's not just another rehash of Pascal though; if that's what you w= ant you might be better off looking elsewhere.

--047d7bd752f6abf47104dde4865a--