[Python-Dev] Bizarre new test failure

Guido van Rossum guido@python.org
Thu, 06 Jun 2002 21:20:26 -0400

> Here are the files that changed between a Python that does work (yesterday)
> and now:
> Here's the list of garbage objects it found:
> [<class 'test_descr.mysuper'>,
>  {'__dict__': <attribute '__dict__' of 'mysuper' objects>,
>  '__module__': 'test_descr',
>  '__weakref__': <member '__weakref__' of 'mysuper' objects>,
>  '__doc__': None,
>  '__init__': <function __init__ at 0x00CC00D8>},
>  (<class 'test_descr.mysuper'>, <type 'super'>, <type 'object'>),
>  (<type 'super'>,),
>  [[...]],
>  <attribute '__dict__' of 'mysuper' objects>,
>  <member '__weakref__' of 'mysuper' objects>,
>  <function __init__ at 0x00CC00D8>,
>  (<cell at 0x00CB4DB0: type object at 0x00768420>,),
>  <cell at 0x00CB4DB0: type object at 0x00768420>]

Most of these are leftovers from the test supers() in test_descr.py.
If Neal is right and this could be two days old, I'm curious if my
last change to typeobject.c (2.148) might not be the culprit, since it
messes with the garbage collector.

I'm trying to fix the non-blocking code in the socket module first, so
I doubt I'll get to this tonight.

--Guido van Rossum (home page: http://www.python.org/~guido/)