Title: Invalid help message inside interactive help utility · Issue #94466 · python/cpython · GitHub
Open Graph Title: Invalid help message inside interactive help utility · Issue #94466 · python/cpython
X Title: Invalid help message inside interactive help utility · Issue #94466 · python/cpython
Description: Documentation From REPL, >>> help(help) produces valid output. From inside interactive help utility, help> help(help), produces less useful output. I suppose I would have expected something like, "cannot use help() inside of help(), use ...
Open Graph Description: Documentation From REPL, >>> help(help) produces valid output. From inside interactive help utility, help> help(help), produces less useful output. I suppose I would have expected something like, "...
X Description: Documentation From REPL, >>> help(help) produces valid output. From inside interactive help utility, help> help(help), produces less useful output. I suppose I would have expected somet...
Opengraph URL: https://github.com/python/cpython/issues/94466
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid help message inside interactive help utility","articleBody":"**Documentation**\r\n\r\nFrom REPL, `\u003e\u003e\u003e help(help)` produces valid output. \r\n\r\nFrom inside interactive help utility, `help\u003e help(help)`, produces less useful output.\r\n\r\nI suppose I would have expected something like, \"cannot use help() inside of help(), use help instead\".\r\n\r\nHere is an example.\r\n\r\n```\r\n~$ python3\r\nPython 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e help(help)\r\n\r\n\u003e\u003e\u003e help() # works as expected\r\n\r\nWelcome to Python 3.10's help utility!\r\n\r\nIf this is your first time using Python, you should definitely check out\r\nthe tutorial on the internet at https://docs.python.org/3.10/tutorial/.\r\n\r\nEnter the name of any module, keyword, or topic to get help on writing\r\nPython programs and using Python modules. To quit this help utility and\r\nreturn to the interpreter, just type \"quit\".\r\n\r\nTo get a list of available modules, keywords, symbols, or topics, type\r\n\"modules\", \"keywords\", \"symbols\", or \"topics\". Each module also comes\r\nwith a one-line summary of what it does; to list the modules whose name\r\nor summary contain a given string such as \"spam\", type \"modules spam\".\r\n\r\nhelp\u003e help(help)\r\nNo Python documentation found for 'help(help)'.\r\nUse help() to get the interactive help utility.\r\nUse help(str) for help on the str class.\r\n\r\n# typing just help works as expected\r\nhelp\u003e \r\nYou are now leaving help and returning to the Python interpreter.\r\nIf you want to ask for help on a particular object directly from the\r\ninterpreter, you can type \"help(object)\". Executing \"help('string')\"\r\nhas the same effect as typing a particular string at the help\u003e prompt.\r\n\u003e\u003e\u003e \r\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-148863\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/ronaldpetty","@type":"Person","name":"ronaldpetty"},"datePublished":"2022-06-30T18:50:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/94466/cpython/issues/94466"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e4c61b7c-1c13-bfdd-6ca8-59730e92386c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2A0:A6E9E:5099A3D:70681B9:6A55013F |
| html-safe-nonce | 48a29e5c2f4832a4e27a77ed9a4743809ea9c0823fd3b9266467b9ee6b479bed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkEwOkE2RTlFOjUwOTlBM0Q6NzA2ODFCOTo2QTU1MDEzRiIsInZpc2l0b3JfaWQiOiI3NjQzMjM4Mjc2MDYxNzkwNTI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fad029cdffff0327badb3b8d6947cae6329688d21a62cf4a1f9fbe90e66668a5 |
| hovercard-subject-tag | issue:1290516351 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/94466/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dcadada4e61af365dc9ba1d4aa8e75075580589631eb3456e8c64689af1e539c/python/cpython/issues/94466 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dcadada4e61af365dc9ba1d4aa8e75075580589631eb3456e8c64689af1e539c/python/cpython/issues/94466 |
| og:image:alt | Documentation From REPL, >>> help(help) produces valid output. From inside interactive help utility, help> help(help), produces less useful output. I suppose I would have expected something like, "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ronaldpetty |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width