Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Re: Parens do create a tuple Date: Sun, 10 Apr 2016 22:51:35 -0400 Lines: 14 Message-ID: References: <1460333911.3449208.574628345.4B46CD32@webmail.messagingengine.com> <85r3ed2ctn.fsf_-_@benfinney.id.au> <85inzp2c93.fsf@benfinney.id.au> <857fg43orj.fsf@benfinney.id.au> <570b0ca9$0$1608$c3e8da3$5496439d@news.astraweb.com> <1460343095.1633279.574715601.355BA760@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de s/mqljGVKZlka+G+gbynEwTAaIweZBaUh+SPel+z8ucg== 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; 'cpython': 0.05; '(self,': 0.07; '*args,': 0.07; '(1,': 0.09; 'received:internal': 0.09; 'subject:create': 0.09; 'tuple': 0.09; 'def': 0.13; 'argument': 0.15; 'prototype': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 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; 'somewhere.': 0.16; 'tuple,': 0.16; 'wrote:': 0.16; 'pass': 0.22; 'second': 0.24; 'header:In-Reply-To:1': 0.24; 'anywhere': 0.30; "d'aprano": 0.33; 'steven': 0.33; 'could': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'execution.': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.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=mesmtp; bh=NiCd0+UGQLpEjt4GvmyT/NDmABQ=; b=nlRxkG mWdSDK0OdmJccTvxn0kS567tsQscoXPLojZXOuBqps11Z7Fkn+0B4qRWDX8fHpgE LznjUq19sBcLNVFanmJW6o6O+ArWVtEag3UeggV+Tfc9L5lpwvpLy+d0fCP+tOtj vSRpri6JC7cNBJzdXk+cxZmtRxDVHrChcUFQw= 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=NiCd0+UGQLpEjt4 GvmyT/NDmABQ=; b=FPuq6EX8VoLGivzQmx0WxreyyYAAOS/7GoidnJRuGgphnnR GwD6VIwBtsf32m9sU8cIuDsweIcY1eeaD8aUwb3dqdV4zxUaiC7i5vHOzHif6CXT 72DxWKNyFK4wiJLHHbbXyLIMBNpELGbTIj/+fqP3n73xkQR3tG8QGO60gICM= X-Sasl-Enc: YmYrOXJXLrC01E8ueriEpZ5JK4WbgqqwyQQMvDabK77B 1460343095 X-Mailer: MessagingEngine.com Webmail Interface - ajax-82e6ff7b In-Reply-To: <570b0ca9$0$1608$c3e8da3$5496439d@news.astraweb.com> 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: <1460343095.1633279.574715601.355BA760@webmail.messagingengine.com> X-Mailman-Original-References: <1460333911.3449208.574628345.4B46CD32@webmail.messagingengine.com> <85r3ed2ctn.fsf_-_@benfinney.id.au> <85inzp2c93.fsf@benfinney.id.au> <857fg43orj.fsf@benfinney.id.au> <570b0ca9$0$1608$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:106839 On Sun, Apr 10, 2016, at 22:32, Steven D'Aprano wrote: > def func(arg1, arg2, arg3): > pass > > func(1, 2, 3) > > does not create a tuple (1, 2, 3) anywhere in its execution. Well, the second argument to PyObject_Call and function_call is a tuple, which had to come from somewhere. That may be a CPython implementation detail, but what else could __call__'s prototype be but (self, *args, **kwargs)? > Live by pedantry, die by pedantry.