[Python-checkins] r46933 - in python/trunk: Lib/test/crashers/coerce.py Misc/NEWS Objects/classobject.c
Georg Brandl
g.brandl at gmx.net
Tue Jun 13 23:52:54 CEST 2006
brett.cannon wrote:
> Author: brett.cannon
> Date: Tue Jun 13 23:46:41 2006
> New Revision: 46933
>> Removed:
> python/trunk/Lib/test/crashers/coerce.py
> Modified:
> python/trunk/Misc/NEWS
> python/trunk/Objects/classobject.c
> Log:
> If a classic class defined a __coerce__() method that just returned its two
> arguments in reverse, the interpreter would infinitely recourse trying to get a
> coercion that worked. So put in a recursion check after a coercion is made and
> the next call to attempt to use the coerced values.
>> Fixes bug #992017 and closes crashers/coerce.py .
Shouldn't the previously crashing test be added to some appropriate test file?
Georg
More information about the Python-checkins
mailing list