bool behavior in Python 3000?

Paul Rubin http
Wed Jul 11 23:25:55 EDT 2007


tah <tim.hochberg at gmail.com> writes:
> This doesn't leave you with anything equivalent to 'not' however. Or
> nothing consistent. Currently '~a' will complement a boolean array,:
> 
> >>> ~a
> array([False,  True,  True], dtype=bool)

Can you use operator.not_(a) ?



More information about the Python-list mailing list