How clean/elegant is Python's syntax?
Chris Angelico
rosuav at gmail.com
Wed May 29 23:59:08 EDT 2013
On Thu, May 30, 2013 at 10:24 AM, Dan Stromberg <drsalists at 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
More information about the Python-list
mailing list