Question about garbage collection
Thomas Passin
list1 at tompassin.net
Tue Jan 16 07:47:40 EST 2024
On 1/16/2024 4:17 AM, Barry wrote:
>
>
>> On 16 Jan 2024, at 03:49, Thomas Passin via Python-list <python-list at python.org> wrote:
>>
>> This kind of thing can happen with PyQt, also. There are ways to minimize it but I don't know if you can ever be sure all Qt C++ objects will get deleted. It depends on the type of object and the circumstances.
>
> When this has been seen in the past it has been promptly fixed by the maintainer.
The usual advice is to call deleteLater() on objects derived from PyQt
classes. I don't know enough about PyQt to know if this takes care of
all dangling reference problems, though.
More information about the Python-list
mailing list