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


Groups > comp.lang.python > #46430 > unrolled thread

Re: How clean/elegant is Python's syntax?

Started byChris Angelico <rosuav@gmail.com>
First post2013-05-30 13:59 +1000
Last post2013-05-30 13:59 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How clean/elegant is Python's syntax? Chris Angelico <rosuav@gmail.com> - 2013-05-30 13:59 +1000

#46430 — Re: How clean/elegant is Python's syntax?

FromChris Angelico <rosuav@gmail.com>
Date2013-05-30 13:59 +1000
SubjectRe: How clean/elegant is Python's syntax?
Message-ID<mailman.2394.1369886352.3114.python-list@python.org>
On Thu, May 30, 2013 at 10:24 AM, Dan Stromberg <drsalists@gmail.com> wrote:
> 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.

I agree, and would write it as:

var = (1,)

for clarity.

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web