+ and * operators

Peter Schneider-Kamp petersc at stud.ntnu.no
Sun May 7 14:43:21 EDT 2000

Is there some way to refer to the + and *
operators as functions?

If e.g. I want to have the length of a
vector v writing

reduce(lambda x,y:x+y,map(lambda x:x*x,v))

is not really nice. I'd like to write
something like:


thnx for advice
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de

More information about the Python-list mailing list