Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'subject:Python': 0.06; 'method:': 0.09; 'python': 0.11; 'missed': 0.12; 'arg2,': 0.16; 'be:': 0.16; 'roy': 0.16; 'subject:Java': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; "python's": 0.19; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'am,': 0.29; "d'aprano": 0.31; 'steven': 0.31; 'writes:': 0.31; 'actual': 0.34; 'subject: (': 0.35; 'received:google.com': 0.35; '+0200,': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'map': 0.64; 'smith': 0.68; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=6h/y+81pligKB7QzhWy3wykos7zHbx27ZMqVUk73LJM=; b=nBJggywo6/1hHSekTN0LNgfNCpsZCqTDC90ci/I7widFv+qKaKmf3lPL6OraYV1Cdc 4QNK3aN2yBnCYx5Rrb3cJw5+rRhf5fl+nZrenfIKVJYYDsn95pWSZ5Epfb9iYlSSHSpn /MTw9oCRhhGLa8Pl6gqExLocmdKNfhZqJA2YWhtnQnTeaJkZeuDmtkfMnsJpNK+kWHFh VGE6BlzyzsL1MeP74MSOEycl5b5ZNMDnmC+xrNbOe+vc3VJbcu0NE68S/LAfSceNBBDC qb9d+NvWnM6TUgBX9NCZdYFvI90YWL7R7wRJS/GSGQ+V5GCD3I0kKgOF82WTyut4hdtI R1gQ== X-Received: by 10.224.29.69 with SMTP id p5mr2968924qac.30.1382524603614; Wed, 23 Oct 2013 03:36:43 -0700 (PDT) Sender: Ned Batchelder Date: Wed, 23 Oct 2013 06:36:42 -0400 From: Ned Batchelder User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Steven D'Aprano , python-list@python.org Subject: Re: Python was designed (was Re: Multi-threading in Python vs Java) References: <0a9761bd-4f1c-48a9-a3c5-9424f2e99f2e@googlegroups.com> <7b1b5852-a213-4a45-bb9b-2a840c183a57@googlegroups.com> <52648c54$0$29981$c3e8da3$5496439d@news.astraweb.com> <526785c1$0$30000$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <526785c1$0$30000$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382524611 news.xs4all.nl 15981 [2001:888:2000:d::a6]:37850 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57349 On 10/23/13 4:16 AM, Steven D'Aprano wrote: > On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote: > >> Roy Smith writes: >> >>> You missed the ever-so-special Objective C syntax: > [...] >> The actual syntax would be >> >> [object method: arg1 withSomething: arg2 withSomethingElse: arg3] > I don't get how to map that to Python's syntax. > > object.method(arg1, arg2, arg3) > > What are "withSomething" and "withSomethingElse"? > > The Python would be: object.method(arg1, withSomething=arg2, withSomethingElse=arg3) --Ned.