New submission from Kevin Norris <nykevin.nor...@gmail.com>:

pkgutil.get_data()'s documentation[1] says it is a wrapper for 
importlib.abc.ResourceLoader.get_data(), but the latter's documentation[2] says 
the whole class is deprecated since 3.7.

Please either:

A. Formally deprecate pkgutil.get_data() (and ideally provide a "nice" 
alternative wrapper, so that I don't have to muck about with importlib's 
endless heterarchy of opaque objects which return other opaque objects).
B. Modify pkgutil.get_data() to use ResourceReader instead of ResourceLoader.
C. (A) or (B) has already been done, just document it.

[1]: https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data
[2]: 
https://docs.python.org/3.8/library/importlib.html#importlib.abc.ResourceLoader

----------
assignee: docs@python
components: Documentation, Library (Lib)
messages: 330456
nosy: Kevin.Norris, docs@python
priority: normal
severity: normal
status: open
title: pkgutil.get_data() is a wrapper for a deprecated class
type: behavior
versions: Python 3.7, Python 3.8

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

Reply via email to