-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in help(sqlite3) between Python 3.10.8 and Python 3.11.0 #99003
Comments
Reproduced on |
This bisects to a3d4d15 on
Both PRs are linked to: Cc. @erlend-aasland |
Thanks for the report @tom-kacvinsky, and thanks for the bisect @AlexWaygood! I'll look into it. |
I was curious, so I ran the following script to see if Click to see the scriptimport io
import sys
import warnings
from contextlib import redirect_stdout
warnings.filterwarnings("ignore", category=DeprecationWarning)
bad_modules, unimportable_modules = [], []
for name in sys.stdlib_module_names:
if name in {"antigravity", "this"}:
continue # no
try:
mod = __import__(name)
except:
unimportable_modules.append(name)
continue
with redirect_stdout(io.StringIO()):
try:
help(mod)
except:
bad_modules.append(name)
print(f"Modules with broken help: {bad_modules}")
print(f"Unimportable modules: {unimportable_modules}") Results on my Windows machine:
Click to see the traceback
|
With the same script, these modules on Linux have problems with
Some of the ones that don't import are ones that either don't apply to Linux, or I didn't build - |
@AlexWaygood: Nice. A possible enhancement for the check-modules script that's run at the end of the build? |
Part of the problem is inconsistencies in the docstrings themselves. I've fixed these, but the problems still persist. I suspect a bug in |
See also gh-83685 |
Duplicate of gh-83685 |
Bug report
When running the Python interactive interpreter as follows
Python 3.10.8 displays the help for
sqlite3
, but 3.11.0 gives a trackbackYour environment
Built with GCC 12.1.0 and sqlite3 3.37.2
The text was updated successfully, but these errors were encountered: