A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-January/151545.html below:

[Python-Dev] PEP 567 v2

[Python-Dev] PEP 567 v2 [Python-Dev] PEP 567 v2Victor Stinner victor.stinner at gmail.com
Tue Jan 2 18:51:41 EST 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180103/5d210100/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4