flipping specific bits in numeric array

Fernando Pérez fperez528 at yahoo.com
Sun Oct 6 16:28:28 EDT 2002


les ander wrote:

> furthermore, is it possible to overload the "not" operator for
> numeric so that the i could achieve the above with simply "not a"?
> thanks
> 
In [1]: logical_not ?
Type:           ufunc
String Form:    <ufunc 'logical_not'>
Namespace:      Interactive
Docstring:
    logical_not(x) returns array of 1's where x is false, 0 otherwise.


cheers,

f



More information about the Python-list mailing list