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 instantiate another object:
bar = Bar(foo)
bar i
On Thu, 7 Sept 2023 at 23:51, 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.
>
>
Maybe a new keyword like `delvalue`?
On Thu, Sep 7, 2023 at 10:02 AM Chris Angelico wrote:
> On Thu, 7 Sept 2023 at 23:51, 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,
You would be deleting the name, not the value. `unbind` would be a better
keyword.
___
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.
Ah! I like that!
On Thu, Sep 7, 2023 at 5:24 PM Tiago Illipronti Girardi <
[email protected]> wrote:
> You would be deleting the name, not the value. `unbind` would be a better
> keyword.
> ___
> Python-ideas mailing list -- [email protected]