[IPython-User] bitwise and

Éric Depagne eric@depagne....
Fri Aug 9 07:31:20 CDT 2013


> Hi all.
> 
Hmm, found that I missed the () where they were needed.

Apologies.
Éric.
> I have updated ipython from 0.13 to 1.0 this morning (btw, congrats to all
> the devs!).
> 
> I have the following code that worked yesterday:
> l = np.random.standard_cauchy(10000)
> l = l[l>-25 & l<25]
> 
> 
> Since the update, I get the following:
> <ipython-input-15-8e231ea64b0e> in <module>()
> ----> 1 l = l[l>-25 & l<25]
> 
> TypeError: ufunc 'bitwise_and' not supported for the input types, and the
> inputs could not be safely coerced to any supported types according to the
> casting rule ''safe''
> 
> Do I do something wrong?
> 
> Éric.
> 
> Un clavier azerty en vaut deux
> ----------------------------------------------------------
> Éric Depagne                            eric@depagne.org
Un clavier azerty en vaut deux
----------------------------------------------------------
Éric Depagne                            eric@depagne.org


More information about the IPython-User mailing list