This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients bup, docs@python, eric.smith, steven.daprano
Date 2018-06-10.00:07:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528589256.91.0.592728768989.issue33814@psf.upfronthosting.co.za>
In-reply-to
Content
Perhaps a little less self-righteous anger and a little more detail on this alleged bug would be appropriate.

Quote: 
I still think it's ridiculous that every item added to that dict has an "extra", non-obvious reference count that is impossible to vanquish of from within Python.

Have you demonstrated that this is the case? How do you know that is what is happening?

Quote:
I intuited leaving `locals` blank will do what usually happens when functions take optional arguments, and *usually* that is *not* the triggering of a "hidden" memory leak.

Have you demonstrated a memory leak? What is your intuition for what leaving locals blank should do? Did you try running the code without leaving locals blank?

Quote: 
the supposed justification for `exec`'s ability to very easily trigger a catastrophic memory leak

I wouldn't call your example code "very easily", nor do I know what "supposed justification" you are referring to. I read the docs for exec here

https://docs.python.org/3/library/functions.html#exec

and I see nothing justifying memory leaks or even mentioning them. Are you reading some other documentation?

Is this the shortest, simplest demonstration of the leak you can come up with? What output do you get and what output did you expect?

If it necessary for repeat to be imported under the name "reeeee" over and over again? What do weakrefs have to do with this?

You call this a "catastrophic" memory leak, I don't know whether this is mere hyperbole or something that will lock up or crash my computer when I run it.
History
Date User Action Args
2018-06-10 00:07:37steven.dapranosetrecipients: + steven.daprano, eric.smith, docs@python, bup
2018-06-10 00:07:36steven.dapranosetmessageid: <1528589256.91.0.592728768989.issue33814@psf.upfronthosting.co.za>
2018-06-10 00:07:36steven.dapranolinkissue33814 messages
2018-06-10 00:07:33steven.dapranocreate