[Python-Dev] PEP 567 v3
Victor Stinner
victor.stinner at gmail.com
Tue Jan 16 18:26:58 EST 2018
Hi Yury,
Thanks for the updated PEP v3, it's now much better than PEP v2!
I have no more complain against your PEP. I vote +1 for PEP 567 contextvars!
> The only open question I personally have is whether ContextVar.reset()
> should be idempotent or not. Maybe we should be strict and raise an
> error if a user tries to reset a variable more than once with the same
> token object?
I don't think that it's worth it to prevent misuage of reset(). IMHO
it's fine if calling reset() twice reverts the variable state twice.
Victor
More information about the Python-Dev
mailing list