> On 6 Sep 2023, at 03:47, Daniel Walker wrote:
>
> I use foo to instantiate another object:
>
> bar = Bar(foo)
>
> bar is free to manipulate foo however it wants and even del it if necessary.
foo is a reference to an object, it is not an object in its own right.
You can say that bar is
On Fri, Sep 8, 2023 at 11:00 AM Barry Scott wrote:
> I see no need for del to return anything, you already have the reference
> in foo.
> The times that foo is dropped at module level are rare enough to not need
> special syntax.
>
I agree - using del is very rare in my code. The use case of pas
On 06/09/2023 03:47, Daniel Walker wrote:
Perhaps this is a solution in search of a problem but I recently
encountered this situation in one of my projects.
I have an object, foo, which, due to the references it contains, I'd
rather not keep around longer than necessary.
I use foo to instant