Makes sense. On Tue, Sep 12, 2023 at 2:55 AM Rob Cliffe via Python-ideas < python-ideas@python.org> wrote:
> > > On 08/09/2023 22:19, Christopher Barker wrote: > > On Fri, Sep 8, 2023 at 11:00 AM Barry Scott <ba...@barrys-emacs.org> > 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 passing a > name into a function (or somewhere else?) and then immediately deleting it > is rare indeed -- not worth new syntax. > > -Chris > > > +1. The only time I can remember using del to delete a variable is after > creating a structure with a large memory footprint that is only needed > temporarily. > Best wishes > Rob Cliffe > _______________________________________________ > 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/RMS3RID2R2NO4V5A3AOKJCUUOCMHXB4Z/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ 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/LTPC4FNQFAWYNZEV5F63TOKU2H3ISUYH/ Code of Conduct: http://python.org/psf/codeofconduct/