Is this a bug? Python intermittently stops dead for seconds

Giovanni Bajo noway at
Sun Oct 1 09:13:25 CEST 2006

charlie strauss wrote:

> Below is a simple program that will cause python to intermittently
> stop executing for a few seconds.  it's 100% reproducible on my
> machine.

Confirmed with Python 2.4.2 on Windows.

gc.disable() fixes it, so it looks like you found an inefficiency in the
Python's GC. I have no idea whether this would be considered a bug by Python's
developer, but you can try opening a bugreport...
Giovanni Bajo

More information about the Python-list mailing list