Re: [Python-Dev] modules people want installed automatically (was: Re: re performance)

2017年1月30日 10:30:06 -0800

On Jan 30, 2017, at 06:14 PM, Brett Cannon wrote:
>What functionality are you after here from pkg_resources? If it's the
>reading of data files then you will get that in the stdlib through
>importlib as soon as I'm not working on getting our workflow to work
>through GitHub's web UI (which obviously includes the migration itself).
http://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access
Mostly I use:
* resource_filename()
* resource_string() (really, resource_bytes!)
* resource_stream() (although I'd really like a more open()-like API)
This might fall under a simpler PEP 365. Also, while I would love to have
these available say in importlib, I also like to consider a backward
compatible API where the stdlib provides the `pkg_resources` module name.
That's not totally required though because you can play ImportError games
until Python 3.7 (presumably) is in widespread -and only- use.
Cheers,
-Barry

Attachment: pgpbwx9wa1J1Z.pgp
Description: OpenPGP digital signature

_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to