Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Python was designed (was Re: Multi-threading in Python vs Java) Date: Thu, 24 Oct 2013 00:31:15 +1300 Lines: 22 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net ns5nkWYteHi07z4b+0oRYwOrkHiQe0K/2VQ8OizHA1LbDJh5B8 Cancel-Lock: sha1:TFjRZ1E63UObCVz6orsCgNJ+Gjk= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: <526785c1$0$30000$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:57350 Steven D'Aprano wrote: > On Tue, 22 Oct 2013 09:38:16 +0200, Lele Gaifax wrote: > >>The actual syntax would be >> >> [object method: arg1 withSomething: arg2 withSomethingElse: arg3] > > I don't get how to map that to Python's syntax. It's roughly morally equivalent to object.method(arg1, withSomething = arg2, withSomethingElse = arg3) But there are several reasons why it's not really equivalent to that. PyObjC actually maps it to object.method_withSomething_withSomethingElse_(arg1, arg2, arg3) which is very close to what Objective C is doing under the hood. -- Greg