[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Wed, May 23, 2018 at 3:51 AM, bartc <bc at freeuk.com> wrote: > On 22/05/2018 15:25, Chris Angelico wrote: >> >> On Tue, May 22, 2018 at 8:25 PM, bartc <bc at freeuk.com> wrote: >>> >>> Note that Python tuples don't always need a start symbol: >>> >>> a = 10,20,30 >>> >>> assigns a tuple to a. >> >> >> The tuple has nothing to do with the parentheses, except for the >> special case of the empty tuple. It's the comma. > > > No? Take these: > > a = (10,20,30) > a = [10,20,30] > a = {10,20,30} > > If you print type(a) after each, only one of them is a tuple - the one with > the round brackets. And this isn't a tuple either: import os, sys, math If you've actually read the other emails in this thread, you'll see that this has already been said. ChrisA

- Prev by Date:
**"Data blocks" syntax specification draft** - Next by Date:
**Target WSGI script cannot be loaded as Python module.** - Previous by thread:
**"Data blocks" syntax specification draft** - Next by thread:
**"Data blocks" syntax specification draft** - Index(es):