|
From: <bc...@wo...> - 2001-08-30 17:03:23
|
[Kevin Dangoor] >We took a quick glance at CPython yesterday, and it didn't look like it was >doing anything special to handle this. I guess it happens here in CPython: > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/python/python/dist/src/Objects/classobject.c?annotate=2.143#1559 >The exception basically seemed to >just disappear. It would be a simple patch to just make the __nonzero__ >function toss out any exception that occurs when searching the Python >classes for __nonzero__. But is that the "right" way? I think it is. Normally it is very bad to silently ignore exceptions, but since __nonzero__ already have __len__ as fallback, it may be the right think to do here. In any case, please submit a bug report about it to the SF bug tracker. regards, finn |