[Python-Dev] PEP 558: Defined semantics for locals() (original) (raw)
Steven D'Aprano steve at pearwood.info
Sun May 26 06:06:02 EDT 2019
- Previous message (by thread): [Python-Dev] [SPAM?] Re: PEP 558: Defined semantics for locals()
- Next message (by thread): [Python-Dev] PEP 558: Defined semantics for locals()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
(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
- Previous message (by thread): [Python-Dev] [SPAM?] Re: PEP 558: Defined semantics for locals()
- Next message (by thread): [Python-Dev] PEP 558: Defined semantics for locals()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]