We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67cacb6 commit 60dec97Copy full SHA for 60dec97
core/src/main/java/oracle/weblogic/deploy/util/PyRealBoolean.java
@@ -47,6 +47,12 @@ public PyString __str__() {
47
return new PyString(toString());
48
}
49
50
+ @Override
51
+ // for Python boolean check, such as bool(abc), or if abc...
52
+ public boolean __nonzero__() {
53
+ return isTrue;
54
+ }
55
+
56
@Override
57
public boolean equals(Object other) {
58
if(other instanceof PyRealBoolean) {
0 commit comments