This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: len wrong help
Type: Stage: resolved
Components: Documentation Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, larry, ncoghlan, python-dev, veky, yselivanov
Priority: normal Keywords:

Created on 2014-04-18 04:19 by veky, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg216771 - (view) Author: Vedran Čačić (veky) * Date: 2014-04-18 04:19
From recently, help(len) gives the wrong signature of len.

Help on built-in function len in module builtins:

len(...)
    len(module, object)
        ^^^^^^^^
    Return the number of items of a sequence or mapping.

I tried to track it down, I think it happened here: http://bugs.python.org/file33655/larry.support.text_signature.on.more.types.6.txt

I realize it was a part of some big fix, so I don't know how easy it is to fix independently. Also, you might think it's not so big an issue. But I teach Python, and my pupils are really confused because of this. Please fix it if anyhow possible. Tnx.
msg216773 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-04-18 05:04
New changeset 679319e3f42b by Benjamin Peterson in branch '3.4':
correct len signature in docstring (closes #21294)
http://hg.python.org/cpython/rev/679319e3f42b
msg216775 - (view) Author: Vedran Čačić (veky) * Date: 2014-04-18 05:20
1. Was it really _that_ easy? I mean, there obviously was a reason for previous change... someone wouldn't add a parameter to documentation out of thin air. As far as I can see, it was because automatic argument inspection didn't work in some cases...

2. If it really is that easy, when will the fixed version be available? I know I can compile from source, but my pupils are not so comfortable with this. Will it be in 3.4.1?
msg216776 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2014-04-18 05:46
It's really that easy, it was a stupid bug that is probably my fault, the fix will be in 3.4.1.
History
Date User Action Args
2022-04-11 14:58:02adminsetgithub: 65493
2014-04-18 05:46:17larrysetmessages: + msg216776
2014-04-18 05:20:12vekysetmessages: + msg216775
2014-04-18 05:04:16python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg216773

resolution: fixed
stage: needs patch -> resolved
2014-04-18 04:37:08yselivanovsetnosy: + ncoghlan, yselivanov
2014-04-18 04:28:49ned.deilysetnosy: + larry

stage: needs patch
2014-04-18 04:19:33vekycreate