Python was designed (was Re: Multi-threading in Python vs Java)
Grant Edwards
invalid at invalid.invalid
Wed Oct 23 10:21:18 EDT 2013
On 2013-10-23, Ned Batchelder <ned at 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 <roy at 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 --
More information about the Python-list
mailing list