On 2013-10-23, Ned Batchelder <n...@nedbatchelder.com> wrote:
> 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 <r...@panix.com> 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)

FWIW, the Objective C syntax and semantics are both based on Smalltalk
(which, IMO, is a somewhat easier to understand than OC).

-- 
Grant Edwards               grant.b.edwards        Yow! He is the MELBA-BEING
                                  at               ... the ANGEL CAKE
                              gmail.com            ... XEROX him ... XEROX
                                                   him --
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to