2007-02-14 | paulb | file changeset files shortlog | Renamed CheckExc to CheckType and added an "inverted" option which filters out the listed types. Introduced a separate simplified program fragment for comparison operations, using tests for NotImplemented to cause "reflected" method calls, with CheckType used to perform such tests and to filter types of result values, although it is likely that such filtering could occur in __bool__ invocations anyway. |
paulb@158 | 1 | def f(a): |
paulb@158 | 2 | return a |