[issue13691] pydoc help (or help('help')) should show the doc for help

2017-06-08 Thread Nick Coghlan
Nick Coghlan added the comment: Belatedly removing the "easy" tag, since that turned out to be thoroughly incorrect... -- keywords: -easy ___ Python tracker ___ ___

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-04-09 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, it's definitely a tricky problem. While I didn't take them into account in my review, I now realise those issues also impacted the attempted workaround - I'd be surprised if it worked as intended in those other contexts (even the "pydoc -b" rendered HTML vi

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-04-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It does make me wonder whether it might be worth defining a __help__ magic > method that completely overrides what help(obj) displays. This should be very complex protocol if take to account that help() outputs formatted and highlighted text and pydoc can

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-04-09 Thread Nick Coghlan
Nick Coghlan added the comment: After reviewing Sanyam's PR at https://github.com/python/cpython/pull/172 I ended up rejecting it as an approach to resolving this issue. The core problem with the approach is that accessing `_sitebuiltins._Helper` is an implementation detail twice over: - Pyth

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-02-18 Thread Jaysinh shukla
Changes by Jaysinh shukla : -- nosy: +jaysinh.shukla ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-02-18 Thread Sanyam Khurana
Changes by Sanyam Khurana : -- pull_requests: +138 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-02-18 Thread Nick Coghlan
Nick Coghlan added the comment: Recapping the situations that need test cases before this can be merged: * behaviour when "help" is entered at the interactive help prompt (as the current behaviour is correct and should *not* change) * behaviour when calling "help(help)" * behaviour when calling

[issue13691] pydoc help (or help('help')) should show the doc for help

2017-02-18 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hi, I'm working on fixing this issue. -- nosy: +CuriousLearner ___ Python tracker ___ ___ Python-bug

[issue13691] pydoc help (or help('help')) should show the doc for help

2016-08-13 Thread R. David Murray
R. David Murray added the comment: No 3.4 can't be patched, this is not a security issue. A patch to make the behvior what we want should be generated against either 3.5 or 3.6, and the committer will deal with any issues arising from 3.5 vs 3.6 issues. -- versions: +Python 3.5, Pytho

[issue13691] pydoc help (or help('help')) should show the doc for help

2016-08-13 Thread SilentGhost
Changes by SilentGhost : -- nosy: +Cubky, Devin Jeanpierre, eric.araujo, ezio.melotti, jairotrad, jbitcm-, mikehoy, r.david.murray, terry.reedy -lissacoffeyx ___ Python tracker

[issue13691] pydoc help (or help('help')) should show the doc for help

2016-08-13 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg272582 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13691] pydoc help (or help('help')) should show the doc for help

2016-08-13 Thread lissacoffeyx
lissacoffeyx added the comment: I just tested this issue in Python 3.6.0a0 and got this behavior: help('help') brings "Help on _Helper in module _sitebuiltins object:" help(help) brings: Help on _Helper in module _sitebuiltins object: help() invokes the help command line. So this was fixes

[issue13691] pydoc help (or help('help')) should show the doc for help

2015-08-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.5 is the same as 3.6 in that now both help(help) and help('help') show the not terribly helpful "Help on _Helper in module site object:...". Buried in the text is | Calling help() at the Python prompt starts an interactive help session. | Calling help(t

[issue13691] pydoc help (or help('help')) should show the doc for help

2015-08-16 Thread Jairo Trad
Jairo Trad added the comment: I just tested this issue in Python 3.6.0a0 and got this behavior: help('help') brings "Help on _Helper in module _sitebuiltins object:" help(help) brings: Help on _Helper in module _sitebuiltins object: help() invokes the help command line. So this was fixes on

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-10 Thread Éric Araujo
Éric Araujo added the comment: I was addressing the author of the patch :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-10 Thread Mike Hoy
Mike Hoy added the comment: >>> Cool! Can you add tests? Nope, I can't add tests. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-10 Thread Éric Araujo
Éric Araujo added the comment: Cool! Can you add tests? -- stage: needs patch -> test needed ___ Python tracker ___ ___ Python-bugs-l

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-07 Thread Mike Hoy
Mike Hoy added the comment: >> What about "pydoc help"? $ ./python -m pydoc help Help on built-in function help: help(...) Invoke the built-in help system. help() The interactive help system starts on the interpreter console. help(string) The string is looked up as the na

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-07 Thread Éric Araujo
Éric Araujo added the comment: What about "pydoc help"? -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-07 Thread Mike Hoy
Mike Hoy added the comment: I imported this patch on 3.4 and it worked as expected on my system. help('help') brings up info about help() help(object) prints the docstring help() invokes the help -- ___ Python tracker

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-10-07 Thread Mike Hoy
Changes by Mike Hoy : -- nosy: +mikehoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-11 Thread Petr Kubat
Petr Kubat added the comment: I see. So calling help('help') should produce the documentation on the help() function and typing help at the help> prompt should print the help for the prompt. Tricky indeed. I think I'll look at it during the day after tomorrow and post some results (if any).

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-10 Thread R. David Murray
R. David Murray added the comment: Oh, that wouldn't fix 'pydoc help', would it. So there are probably two places where the special case has to be added, which means the code itself should go in pydoc and be called from _Helper.__call__ somehow. (Note, I'm just throwing out ideas here, I ha

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-10 Thread R. David Murray
R. David Murray added the comment: "works" in the sense that it produces output. But it doesn't produce the output it used to, which is the same text as the initial banner when you type help(). I believe the existing behavior in this case is correct. With your patch it produces the same ou

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-10 Thread Petr Kubat
Petr Kubat added the comment: Help at the help> prompt does work, I tested that. But if you (or anyone) thought of a better way to fix this issue I would be glad to change it. -- ___ Python tracker __

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-10 Thread R. David Murray
R. David Murray added the comment: It doesn't look like anyone is working on it currently. Yes, getting this right is a bit tricky for exactly the reason you say. You have to make sure you don't break the other uses, and glancing at the patch (I haven't looked at the code you are patching) i

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-06-10 Thread Petr Kubat
Petr Kubat added the comment: Is anyone still working on this? If not I would like to make this work. Although I'm not exactly sure how to tackle this problem since the built-in help function is defined as a wrapper around pydoc.help and so the docstring used for printing help('help') is actua

[issue13691] pydoc help (or help('help')) should show the doc for help

2012-01-17 Thread Éric Araujo
Changes by Éric Araujo : -- title: pydoc help (or help('help')) claims to run a help utility; does nothing -> pydoc help (or help('help')) should show the doc for help ___ Python tracker __