Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Georg's suggestion seems reasonable. Alternatively, you can just catch AttributeError or TypeError.
Lowering the priority to normal and marking as unresolved. At some point, it would be nice to review the whole code base to see if other calls to PyErr_Clear() are too aggressive. In that review, perhaps a more clean and general solution with present itself. ---------- assignee: rhettinger -> georg.brandl priority: critical -> normal resolution: fixed -> versions: +Python 2.6, Python 3.1 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1242657> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com