[PyQt] subtle bug in PyQt in combination with Python garbage collector

Adrian Buehlmann adrian at cadifra.com
Wed Aug 24 13:03:33 BST 2011


On 2011-08-13 18:05, Kovid Goyal wrote:
> This bug has been present for a very long time. As a workaround in my projects, 
> I disable the automatic garbage collector and run garbage collection manually
> in the GUI thread via QTimer. Here's the code to do that:
> 
> class GarbageCollector(QObject):

I just wanted to say thank you for sharing this info.

I've applied your workaround on TortoiseHg [1]

   https://bitbucket.org/tortoisehg/thg/changeset/d5a9ae16b56b

which will be included in the next stable release 2.1.3 (due on Sep 1st).

[1] http://tortoisehg.bitbucket.org/


More information about the PyQt mailing list