Is this a bug? Python intermittently stops dead for seconds

Daniel Nogradi nogradi at gmail.com
Sun Oct 1 04:37:35 EDT 2006


> > > 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...
>
> Reproduced on 2.4.3 and 2.5 on Windows.
> Disabling GC fixes the speed problem as Giovanni said, but doesn't
> reduce the amount of memory taken (measured by increase in "page file
> used" display in Task Manager). At about 520 Mb, this seems rather too
> high to me.
>
> Definitely worth reporting, even if the outcome is only(!) a timbottian
> dissertation of why it's not a problem -- at least we'd learn something
> :-)

This is because the OP violated the Style Guide (PEP 8) and used 'me'
instead of 'self' as the first argument of instance methods, the
couple of seconds delay in runtime is the revenge of the vicious
interpreter :)



More information about the Python-list mailing list