>>> print(len.__doc__) len(module, object) Return the number of items of a sequence or mapping. >>> len(os, 1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: len() takes exactly one argument (2 given)
Notice the two parameters in the first line of the docstring.
When will you pass two arguments to len ? Is the doxrine specified correctly? I am using Python 3.4.0.
source share