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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to