[Python-Dev] PEP 567 v3 (original) (raw)
Yury Selivanov yselivanov.ml at gmail.com
Tue Jan 16 20:33:53 EST 2018
- Previous message (by thread): [Python-Dev] PEP 567 v3
- Next message (by thread): [Python-Dev] PEP 567 v3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Jan 16, 2018 at 8:27 PM, Nathaniel Smith <njs at pobox.com> wrote: [..]
token = cvar.set(...) token.reset()
I see the point, but I think that having the 'reset' method defined on the ContextVar class is easier to grasp. It also feels natural that a pair of set/reset methods is defined on the same class. This is highly subjective though, so let's see which option Guido likes more.
Yury
- Previous message (by thread): [Python-Dev] PEP 567 v3
- Next message (by thread): [Python-Dev] PEP 567 v3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]