Jan. 16, 2018
11:26 p.m.
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