I am trying to call a reduce on a list that contains ints and longs. For example,
reduce( int.__mul__, [ 231212312412L, 3 ], 1 )
but I get an unimplemented error. and when I replace the int’s mul method with the long’s mul method it complains that it is getting an int. Must I map them all to a long first? like this.
reduce( long.__mul__, map( long, [ 12312412314L, 5 ] ), 1L )
operator has: