diff --git a/Lib/python/pyopers.swg b/Lib/python/pyopers.swg index 442515dac..76f1e6789 100644 --- a/Lib/python/pyopers.swg +++ b/Lib/python/pyopers.swg @@ -33,6 +33,7 @@ /* Special cases */ %rename(__invert__) *::operator~; %rename(__call__) *::operator(); +%rename(__nonzero__) *::operator bool; /* Ignored operators */ %ignoreoperator(LNOT) operator!;