On Thu, Nov 26, 2020 at 7:45 PM MRAB <pyt...@mrabarnett.plus.com> wrote:
> > It's not discarded, it's still referenced by d in the outer scope. > > > No, it's not any more, and that's the point. It was _moved_ into the > function, and although the function returned it, it was discarded > because the caller didn't bind it to keep hold of it. > Sounds like one of you is describing current semantics and the other is explaining the proposed new semantics. :-) -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/AQI6QUHDWHWSFWCIZP5GL2TQYIS4CGPP/ Code of Conduct: http://python.org/psf/codeofconduct/