Re: [Python-Dev] PEP 567 v2

2018年1月02日 15:54:54 -0800

Why ContextVar.reset(token) does nothing at the second call with the same
token? What is the purpose of Token._used? I guess that there is an use
case to justify this behaviour.
reset() should have a result: true if the variable was restored to its
previous state, false if reset() did nothing because the token was already
used. And/Or Token should have a read-only "used" property.
Victor
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to