
March 12, 2020
10:39 a.m.
On Thu, 12 Mar 2020 at 18:19, Chris Angelico <rosuav@gmail.com> wrote:
No, it wouldn't - the use of the value as a return value counts as a reference. It's exactly the same as any other function that returns a brand-new value.
So the memory of that object will never free... since there's a reference that can't be deleted, until the current scope is not finished. This in practice will break `del variable`