PEP-0550 V5 (#385)

Changes:

* Coroutines have no logical context by default (a revert to the V3
  semantics).

* All APIs have been placed to the ``contextvars`` module, and
  the factory functions were changed to class constructors
  (``ContextVar``, ``ExecutionContext``, and ``LogicalContext``).

* ContextVar.lookup() got renamed back to ContextVar.get() and gained
  the `topmost` and `default` keyword arguments;

* Added ContextVar.delete().

* Fixed ContextVar.get() cache bug (thanks Nathaniel!).

* Added a few more design considerations points.

* Various minor edits and enchancements.
This commit is contained in:
Yury Selivanov 2017-09-01 18:46:39 -04:00 committed by GitHub
parent 3a2bf11650
commit 9931bb814d
1 changed files with 691 additions and 342 deletions

File diff suppressed because it is too large Load Diff