[Python-checkins] r46933 - in python/trunk: Lib/test/crashers/coerce.py Misc/NEWS Objects/classobject.c

Brett Cannon brett at python.org
Wed Jun 14 00:19:20 CEST 2006


Yep.  I will do that now.

-Brett

On 6/13/06, Georg Brandl <g.brandl at gmx.net> wrote:
>
> 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
>
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-checkins/attachments/20060613/5102cc97/attachment.htm 


More information about the Python-checkins mailing list