diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index 2d31fc9f34..d1d9765524 100644 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -103,7 +103,8 @@ RenameSet methodRenameDictionary[] = { { "operator ->" , "dereference", 0 }, { "operator <<=" , "__ilshift__", 1 }, { "operator >>=" , "__irshift__", 1 }, - { "operator typecast bool", "__nonzero__", 0 }, + { "operator typecast bool", "__bool__", 0 }, + { "__bool__" , "__bool__", 0 }, { "__nonzero__" , "__nonzero__", 0 }, { "__int__" , "__int__", 0 }, { "__reduce__" , "__reduce__", 0 },