Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Stephen Hansen Newsgroups: comp.lang.python Subject: Re: Parens do create a tuple (was: one-element tuples [Was: Most probably a stupid question, but I still want to ask]) Date: Sun, 10 Apr 2016 18:03:59 -0700 Lines: 17 Message-ID: References: <1460333911.3449208.574628345.4B46CD32@webmail.messagingengine.com> <85r3ed2ctn.fsf_-_@benfinney.id.au> <1460336639.3457857.574651545.4B992A32@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de hnPzIifw3Cp4s3Q/vWwVogMb+Khe4/VODEhCy7qFZF8w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:question': 0.08; '(1,': 0.09; 'caveat': 0.09; 'received:internal': 0.09; 'subject:create': 0.09; 'subject:still': 0.09; 'tuple': 0.09; 'exception': 0.13; 'suggest': 0.15; 'do,': 0.15; 'subject: \n ': 0.15; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'received:psf.io': 0.16; 'rule.': 0.16; 'subject:Was': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'saying': 0.22; 'stephen': 0.22; 'tuples': 0.22; 'this:': 0.23; 'header:In-Reply-To:1': 0.24; "i've": 0.25; 'issue,': 0.27; 'subject: [': 0.29; 'so,': 0.35; 'false': 0.35; 'stopped': 0.35; 'should': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'things': 0.38; 'received:66': 0.38; 'skip:o 20': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'stand': 0.67; 'proves': 0.84; 'subject:want': 0.93 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=mNayzOTa74FESBr4oTOXcBvR/jA=; b=pw4VrV rDFl4rCLTa6JPNzlg1rML4NqQfyF1DgDF5L2tGbD2IRlR5VHVlepMSjieD2XmMxR aPZ4J0GjVp5HrlGR5taVPoIyHjvvB0WXtF/0jxAgYZeX++xj+rGWPF+T55Z0+uSl SSpvlCOCsQjEbfbF/kUCkVAlH/nd6Peo2qdgg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=mNayzOTa74FESBr 4oTOXcBvR/jA=; b=lzAlGW+VzWyI1ejwkGJqD5XLfZOLx6nR3/05/7/MN0gP5O0 9qYjPGvH0n/rzcHhel72L4NBVSCoCaFLFw/aOexQS/VmS1zPOVLOItcGkOjuPtVF NdD2P3UOlaIV5sqeYUxgLfSaWRsWx2viKC2JD1YV6xpFcIGkVTqYwNonq0uc= X-Sasl-Enc: /nXsAee7wFuVaHbPOeZOAxA/bqEXPDit0+BWa3Xp7H/8 1460336639 X-Mailer: MessagingEngine.com Webmail Interface - ajax-82e6ff7b In-Reply-To: <85r3ed2ctn.fsf_-_@benfinney.id.au> X-Mailman-Approved-At: Sun, 10 Apr 2016 21:07:24 -0400 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1460336639.3457857.574651545.4B992A32@webmail.messagingengine.com> X-Mailman-Original-References: <1460333911.3449208.574628345.4B46CD32@webmail.messagingengine.com> <85r3ed2ctn.fsf_-_@benfinney.id.au> Xref: csiph.com comp.lang.python:106822 On Sun, Apr 10, 2016, at 05:45 PM, Ben Finney wrote: > So, let's please stop saying =E2=80=9Cparens don't create a tuple=E2=80= =9D. They do, and > because of that I've stopped saying that false over-simplification. I stand by "parens don't make a tuple", with the caveat that I should have mentioned the empty tuple exception that proves the rule. The only time you need parens is to resolve ambiguity. To suggest that parens do make tuples confuses the issue, given things like this: >>> a =3D 1,2,3 >>> b =3D (1, 2, 3) -- Stephen Hansen m e @ i x o k a i . i o