Jeff Shannon wrote: > Or, alternatively > > import operator > > def bool(x): > return operator.truth(x) simpler: bool = operator.truth More pythonic, more efficient (one less function call). cheers, f