[issue41869] Multiprocessing Manager Object Cleanup

2020-09-26 Thread Michael L. Boom
that program, the destructor never gets called. This is a serious problem as I can’t cleanup resources in this case. -- components: Library (Lib) messages: 377551 nosy: boom0192 priority: normal severity: normal status: open title: Multiprocessing Manager Object Cleanup type: behavior versions

Re: Object cleanup

2012-05-31 Thread psaff...@googlemail.com
Thanks for all the responses. It looks like none of the BeautifulSoup objects have __del__ methods, so I don't think that can be the problem. To answer your other question, guppy was the best match I came up with when looking for a memory profile for Python (or more specifically Heapy):

Re: Object cleanup

2012-05-31 Thread Oscar Benjamin
On 31 May 2012 11:57, psaff...@googlemail.com psaff...@googlemail.comwrote: Thanks for all the responses. It looks like none of the BeautifulSoup objects have __del__ methods, so I don't think that can be the problem. To answer your other question, guppy was the best match I came up with

Object cleanup

2012-05-30 Thread psaff...@googlemail.com
I am writing a screen scraping application using BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/ (which is fantastic, by the way). I have an object that has two methods, each of which loads an HTML document and scrapes out some information, putting strings from the HTML documents

Re: Object cleanup

2012-05-30 Thread Steven D'Aprano
On Wed, 30 May 2012 09:01:20 -0700, psaff...@googlemail.com wrote: However, I've found that using guppy, after the methods have returned most of the memory is being taken up with BeautifulSoup objects of one type or another. I'm not declaring BeautifulSoup objects anywhere else. What's guppy?

Re: Object cleanup

2012-05-30 Thread Chris Rebert
On Wed, May 30, 2012 at 9:40 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 30 May 2012 09:01:20 -0700, psaff...@googlemail.com wrote: However, I've found that using guppy, after the methods have returned most of the memory is being taken up with BeautifulSoup objects

Re: Object cleanup

2012-05-30 Thread John Gordon
In 6e534661-0823-4c42-8f60-3052e43b7...@googlegroups.com psaff...@googlemail.com psaff...@googlemail.com writes: How do I force the memory for these soup objects to be freed? Have you tried deleting them, using the del command? -- John Gordon A is for Amy, who fell down the

Re: Object cleanup

2012-05-30 Thread Steven D'Aprano
On Wed, 30 May 2012 16:56:21 +, John Gordon wrote: In 6e534661-0823-4c42-8f60-3052e43b7...@googlegroups.com psaff...@googlemail.com psaff...@googlemail.com writes: How do I force the memory for these soup objects to be freed? Have you tried deleting them, using the del command? del

Re: Object cleanup

2012-05-30 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: The destructor doesn't get called into the last reference is gone. And it's important to note that the destructor doesn't get called *immediately* that happens; rather, the destructor will be called *some time after* the last