Title: Regression in help(sqlite3) between Python 3.10.8 and Python 3.11.0 · Issue #99003 · python/cpython · GitHub
Open Graph Title: Regression in help(sqlite3) between Python 3.10.8 and Python 3.11.0 · Issue #99003 · python/cpython
X Title: Regression in help(sqlite3) between Python 3.10.8 and Python 3.11.0 · Issue #99003 · python/cpython
Description: Bug report When running the Python interactive interpreter as follows $ ./python3 Python 3.10.8 (tags/v3.10.8:aaaf517424, Nov 2 2022, 07:29:14) [GCC 12.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. ...
Open Graph Description: Bug report When running the Python interactive interpreter as follows $ ./python3 Python 3.10.8 (tags/v3.10.8:aaaf517424, Nov 2 2022, 07:29:14) [GCC 12.1.0] on linux Type "help", "copyright", "cred...
X Description: Bug report When running the Python interactive interpreter as follows $ ./python3 Python 3.10.8 (tags/v3.10.8:aaaf517424, Nov 2 2022, 07:29:14) [GCC 12.1.0] on linux Type "help", "co...
Opengraph URL: https://github.com/python/cpython/issues/99003
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression in help(sqlite3) between Python 3.10.8 and Python 3.11.0","articleBody":"# Bug report\r\n\r\nWhen running the Python interactive interpreter as follows\r\n\r\n```\r\n$ ./python3\r\nPython 3.10.8 (tags/v3.10.8:aaaf517424, Nov 2 2022, 07:29:14) [GCC 12.1.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import sqlite3\r\n\u003e\u003e\u003e help(sqlite3)\r\n```\r\nPython 3.10.8 displays the help for `sqlite3`, but 3.11.0 gives a trackback\r\n\r\n```\r\n$ ./python3\r\nPython 3.11.0 (main, Nov 2 2022, 07:13:10) [GCC 12.1.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import sqlite3\r\n\u003e\u003e\u003e help(sqlite3)\r\nTraceback (most recent call last):\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2219, in wrap_value\r\n value = eval(s, module_dict)\r\n ^^^^^^^^^^^^^^^^^^^^\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\nNameError: name 'ConnectionType' is not defined. Did you mean: 'Connection'?\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2222, in wrap_value\r\n value = eval(s, sys_module_dict)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\nNameError: name 'ConnectionType' is not defined. Did you mean: 'ConnectionError'?\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"\u003cfrozen _sitebuiltins\u003e\", line 103, in __call__\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 2001, in __call__\r\n self.help(request)\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 2060, in help\r\n else: doc(request, 'Help on %s:', output=self._output)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 1784, in doc\r\n pager(render_doc(thing, title, forceload))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 1778, in render_doc\r\n return title % desc + '\\n\\n' + renderer.document(object, name)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 479, in document\r\n if inspect.ismodule(object): return self.docmodule(*args)\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 1275, in docmodule\r\n contents.append(self.document(value, key, name))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 481, in document\r\n if inspect.isroutine(object): return self.docroutine(*args)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/pydoc.py\", line 1494, in docroutine\r\n signature = inspect.signature(object)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 3272, in signature\r\n return Signature.from_callable(obj, follow_wrapped=follow_wrapped,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 3020, in from_callable\r\n return _signature_from_callable(obj, sigcls=cls,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2512, in _signature_from_callable\r\n return _signature_from_builtin(sigcls, obj,\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2324, in _signature_from_builtin\r\n return _signature_fromstr(cls, func, s, skip_bound_arg)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2272, in _signature_fromstr\r\n p(name, default)\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2254, in p\r\n default_node = RewriteSymbolics().visit(default_node)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/ast.py\", line 410, in visit\r\n return visitor(node)\r\n ^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2246, in visit_Name\r\n return wrap_value(node.id)\r\n ^^^^^^^^^^^^^^^^^^^\r\n File \"/home/LOCAL/tjk/python-3.11.0/lib/python3.11/inspect.py\", line 2224, in wrap_value\r\n raise RuntimeError()\r\nRuntimeError\r\n```\r\n\r\n# Your environment\r\n\r\n- CPython versions tested on: 3.10.8 and 3.11.0\r\n- Operating system and architecture: CentOS 7, x86_64\r\n\r\nBuilt with GCC 12.1.0 and sqlite3 3.37.2\r\n","author":{"url":"https://github.com/tom-kacvinsky","@type":"Person","name":"tom-kacvinsky"},"datePublished":"2022-11-02T11:54:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/99003/cpython/issues/99003"}
| 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:75b3d49e-2575-9622-3f76-f7d7d8ed4e20 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96B8:1C02DC:1E983CE:2A9BBD5:69693774 |
| html-safe-nonce | d0097f73a66c186c267fdba43ded0ffd84573219230de46dd7c39a6334a5c2e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkI4OjFDMDJEQzoxRTk4M0NFOjJBOUJCRDU6Njk2OTM3NzQiLCJ2aXNpdG9yX2lkIjoiNzQ5ODg4Njc2NTk4NDk1NDIyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 09defd95dd8958b2578e88bd853ab660f7498cf89d5d4ae665498983093496cf |
| hovercard-subject-tag | issue:1433019218 |
| 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/99003/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fa6a72623cf14c698c2955912d48e88f22799106347cb2feaa4d5c0afb9048b/python/cpython/issues/99003 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fa6a72623cf14c698c2955912d48e88f22799106347cb2feaa4d5c0afb9048b/python/cpython/issues/99003 |
| og:image:alt | Bug report When running the Python interactive interpreter as follows $ ./python3 Python 3.10.8 (tags/v3.10.8:aaaf517424, Nov 2 2022, 07:29:14) [GCC 12.1.0] on linux Type "help", "copyright", "cred... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tom-kacvinsky |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width