New submission from Stefano Rivera <pyt...@rivera.za.net>:

Originally reported against pypy3 in Ubuntu
https://bugs.launchpad.net/ubuntu/+source/pypy3/+bug/1920675

$ ./python 
Python 3.10.0a5+ (heads/master:ffa55d21b4, May 23 2021, 08:14:50) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('/usr/lib/python3/dist-packages/')
>>> help()
...
help> modules

Please wait a moment while I gather a list of all available modules...

/usr/lib/python3/dist-packages/IPython/kernel/__init__.py:12: ShimWarning: The 
`IPython.kernel` package has been deprecated since IPython 4.0.You should 
import from ipykernel or jupyter_client instead.
  warn("The `IPython.kernel` package has been deprecated since IPython 4.0."
Expected Tk Togl installation in 
/usr/lib/python3/dist-packages/OpenGL/Tk/togl-linux-64
Failure loading Togl package: can't find package Togl, on debian systems this 
is provided by `libtogl2`
...
Crypto              brain_crypt         hgext               random
...

Warnings should probably be suppressed during module importing in help. Any 
warnings emitted here are probably deprecation warnings or system configuration 
issues, not useful to a user trying to browse modules.

----------
assignee: docs@python
components: Documentation, Library (Lib)
messages: 394196
nosy: docs@python, stefanor
priority: normal
severity: normal
status: open
title: help() module listing displays import warnings from deprecated package 
modules
type: behavior
versions: Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44215>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to