On 27 November 2014 at 23:43, Jesus Cea wrote:
> On 27/11/14 13:42, Victor Stinner wrote:
>> 2014-11-27 13:41 GMT+01:00 Victor Stinner :
>>> I am amused about the "/)" suffix in the signature. It happens to all
>>> magic methods.
>>
>> If I remember correctly, it means that the function does not
On 27/11/14 13:42, Victor Stinner wrote:
> 2014-11-27 13:41 GMT+01:00 Victor Stinner :
>> I am amused about the "/)" suffix in the signature. It happens to all
>> magic methods.
>
> If I remember correctly, it means that the function does not accept keywords:
I don't understand. Is that internal
2014-11-27 13:41 GMT+01:00 Victor Stinner :
> I am amused about the "/)" suffix in the signature. It happens to all
> magic methods.
If I remember correctly, it means that the function does not accept keywords:
>>> (3).__lt__(4)
True
>>> (3).__lt__(value=4)
Traceback (most recent call last):
F
2014-11-27 13:41 GMT+01:00 Victor Stinner :
> 2014-11-27 13:28 GMT+01:00 Jesus Cea :
>> http://bugs.python.org/issue20530#msg231584
>
> Copy/paste of the message:
>
> Preparing a presentation about Python Magic methods I found something
> weird: (Python 3.4)
>
> """
help(int.__lt__)
> Help on
2014-11-27 13:28 GMT+01:00 Jesus Cea :
> http://bugs.python.org/issue20530#msg231584
Copy/paste of the message:
Preparing a presentation about Python Magic methods I found something
weird: (Python 3.4)
"""
>>> help(int.__lt__)
Help on wrapper_descriptor:
__lt__(self, value, /) <- THIS!!
Re