A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-January/147286.html below:

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

[Python-Dev] modules people want installed automatically (was: Re: re performance) [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
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>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4