[Python-Dev] Strange "help(int.__lt__)". Probably documentation bug
Victor Stinner
victor.stinner at gmail.com
Thu Nov 27 13:42:35 CET 2014
2014-11-27 13:41 GMT+01:00 Victor Stinner <victor.stinner at gmail.com>:
> 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):
File "<stdin>", line 1, in <module>
TypeError: wrapper __lt__ doesn't take keyword arguments
Victor
More information about the Python-Dev
mailing list