Why tuple with one item is no tuple

Joal Heagney joal at bigpond.net.au
Sun Mar 27 05:58:11 CEST 2005


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")

As we say in Australia, "What The ....."

Joal



More information about the Python-list mailing list