On Sun, 26 May 2019 at 12:23, Chris Angelico <ros...@gmail.com> wrote: > > On Sun, May 26, 2019 at 8:07 PM Steven D'Aprano <st...@pearwood.info> wrote: > > 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 > > > > Sure, but this PEP is all about defining things that weren't > previously defined, so I wanted to clarify intent rather than current > behaviour.
+1 on the PEP being explicit over this. Even though it's current behaviour, it's surprising and making a clear and definitive statement that the PEP intends to make the behaviour part of the language definition and not just a CPython detail, is IMO worthwhile. Paul _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com