jpyinterpreter - Automatic cast to bool for Predicate
Christopher-Chianelli opened this issue · comments
Christopher Chianelli commented
If jpyinterpreter
detects a non-bool value is being returned in a Predicate, it should automatically cast it to bool.
This is to allow int/object logics in filters (i.e. filter(lambda x: x & 1)
), which is allowed in Python, less so in Java.