bool behavior in Python 3000?

Paul Rubin http
Thu Jul 12 05:25:55 CEST 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