commit | ea3912b0da71e16b8a37e04fcf3969dc85c27fa1 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Tue Jun 13 21:46:41 2006 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Tue Jun 13 21:46:41 2006 +0000 |
tree | c620923df225897ffdd560e09ecd99efd692c586 | |
parent | 64116f931cbc517f16f3557c2c776b0f835b6384 [diff] |
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 .