Python was designed (was Re: Multi-threading in Python vs Java)

Ned Batchelder ned at nedbatchelder.com
Wed Oct 23 06:36:42 EDT 2013


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)

--Ned.



More information about the Python-list mailing list