Antoine Pitrou wrote: > Or simply implement __invert__, so you can write it "~ A". > (__invert__ doesn't really invert a number, it takes the bitwise > complement :-)) But that's already taken to mean elementwise bitwise complement. -- Greg