[Python-Dev] Strange "help(int.__lt__)". Probably documentation bug
Victor Stinner
victor.stinner at gmail.com
Thu Nov 27 13:41:19 CET 2014
2014-11-27 13:28 GMT+01:00 Jesus Cea <jcea at jcea.es>:
> 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!!
Return self<value.
"""
I am amused about the "/)" suffix in the signature. It happens to all
magic methods.
More information about the Python-Dev
mailing list