A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-November/137240.html below:

[Python-Dev] Strange "help(int.__lt__)". Probably documentation bug

[Python-Dev] Strange "help(int.__lt__)". Probably documentation bug [Python-Dev] Strange "help(int.__lt__)". Probably documentation bugVictor 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4