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/2019-May/157714.html below:

[Python-Dev] PEP 558: Defined semantics for locals()

[Python-Dev] PEP 558: Defined semantics for locals() [Python-Dev] PEP 558: Defined semantics for locals()Steven D'Aprano steve at pearwood.info
Sun May 26 06:06:02 EDT 2019
(And this time I will remember to remove the SPAM label...)

On Sun, May 26, 2019 at 08:44:33AM +1000, Chris Angelico wrote:

> From my reading of the description, you could also "assert a is b" -
> is that correct?

Yes, that's already the behaviour.

py> def demo():
...     a = locals()
...     b = locals()
...     print(a is b)
...
py> demo()
True



-- 
Steven
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