Check return type of __nonzero__() method.
The language reference says you must return an int or a bool. This fix limits the scope of SF bug 759227 (infinite recursion) to subclasses of int.
Showing
Please register or sign in to comment