New submission from Vedran Čačić:
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.... 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. ---------- assignee: docs@python components: Documentation messages: 216771 nosy: Vedran.Čačić, docs@python priority: normal severity: normal status: open title: len wrong help versions: Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21294> _______________________________________
Changes by Ned Deily <nad@acm.org>: ---------- nosy: +larry stage: -> needs patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21294> _______________________________________
Changes by Yury Selivanov <yselivanov.ml@gmail.com>: ---------- nosy: +ncoghlan, yselivanov _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21294> _______________________________________
Roundup Robot added the comment: New changeset 679319e3f42b by Benjamin Peterson in branch '3.4': correct len signature in docstring (closes #21294) http://hg.python.org/cpython/rev/679319e3f42b ---------- nosy: +python-dev resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21294> _______________________________________
Vedran Čačić added the comment: 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? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21294> _______________________________________
Larry Hastings added the comment: It's really that easy, it was a stupid bug that is probably my fault, the fix will be in 3.4.1. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue21294> _______________________________________
participants (5)
-
Larry Hastings
-
Ned Deily
-
Roundup Robot
-
Vedran Čačić
-
Yury Selivanov