[Async-sig] new library: sniffio – Sniff out which async library your code is running under
Nathaniel Smith
njs at pobox.com
Tue Aug 21 03:24:39 EDT 2018
On Sat, Aug 18, 2018 at 2:44 PM, Chris Jerdonek
<chris.jerdonek at gmail.com> wrote:
> The kind of alternative I had in mind for a neutral location is
> setting an attribute with an agreed upon name on a module in the
> standard lib, perhaps something like
> `contextvars.current_async_library_cvar` to use your naming. This is
> analogous to agreeing on a file name to store information of a certain
> kind in a repository root, like .travis.yml, package.json, or
> pyproject.toml. It's light-weight and doesn't require any
> infrastructure or tying to a particular package on PyPI.
Yeah, it'd be possible. I guess it just didn't seem worth the extra
complication.
-n
--
Nathaniel J. Smith -- https://vorpus.org
More information about the Async-sig
mailing list