| Store | Cart

Why tuple with one item is no tuple

From: Antoon Pardon <apar...@forel.vub.ac.be>
29 Mar 2005 11:20:18 GMT
Op 2005-03-27, Joal Heagney schreef <joal at bigpond.net.au>:
> Antoon Pardon wrote:><snip>>> So python choose a non-deterministic direction. To me (2,3) + (4,5)>> equals (6,8). I don't dispute that having an operator to combine>> (2,3) and (4,5) in (2,3,4,5) is usefull, but they should never have>> used the "+" for that.>> ("alph", "bravo") + ("delta", "max") --> ("alphdelta", "bravomax")

No, that wouldn't be the result. You are still using "+" for
concatenation, even if only on strings. I say python should
have used something else for concatenation (string concatenation
included)

-- 
Antoon Pardon

Recent Messages in this Thread
Joal Heagney Mar 27, 2005 03:58 am
Antoon Pardon Mar 29, 2005 11:20 am
Ville Vainio Mar 29, 2005 01:41 pm
Ville Vainio Mar 29, 2005 01:44 pm
Antoon Pardon Mar 30, 2005 06:58 am
Christos TZOTZIOY Georgiou Mar 23, 2005 12:37 am
Messages in this thread