Python was designed (was Re: Multi-threading in Python vs Java)
Gregory Ewing
greg.ewing at canterbury.ac.nz
Wed Oct 23 07:31:15 EDT 2013
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
More information about the Python-list
mailing list