[Python-Dev] modules people want installed automatically (was: Re: re performance)
Barry Warsaw
barry at python.org
Mon Jan 30 13:26:41 EST 2017
More information about the Python-Dev mailing list
Mon Jan 30 13:26:41 EST 2017
- Previous message (by thread): [Python-Dev] modules people want installed automatically (was: Re: re performance)
- Next message (by thread): [Python-Dev] modules people want installed automatically (was: Re: re performance)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 801 bytes Desc: OpenPGP digital signature URL: <http://mail.python.org/pipermail/python-dev/attachments/20170130/b1b0a1be/attachment.sig>
- Previous message (by thread): [Python-Dev] modules people want installed automatically (was: Re: re performance)
- Next message (by thread): [Python-Dev] modules people want installed automatically (was: Re: re performance)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list