+ and * operators
Peter Schneider-Kamp
petersc at stud.ntnu.no
Sun May 7 14:43:21 EDT 2000
More information about the Python-list mailing list
Sun May 7 14:43:21 EDT 2000
- Previous message (by thread): + and * operators
- Next message (by thread): + and * operators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: reduce(+,map(*,v)) thnx for advice Peter -- Peter Schneider-Kamp ++47-7388-7331 Herman Krags veg 51-11 mailto:peter at schneider-kamp.de N-7050 Trondheim http://schneider-kamp.de
- Previous message (by thread): + and * operators
- Next message (by thread): + and * operators
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list