Author Kevin.Norris
Recipients Kevin.Norris, docs@python
Date 2018-11-26.19:15:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543259758.29.0.788709270274.issue35319@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-11-26 19:15:58Kevin.Norrissetrecipients: + Kevin.Norris, docs@python
2018-11-26 19:15:58Kevin.Norrissetmessageid: <1543259758.29.0.788709270274.issue35319@psf.upfronthosting.co.za>
2018-11-26 19:15:58Kevin.Norrislinkissue35319 messages
2018-11-26 19:15:58Kevin.Norriscreate