[Python-ideas] Fast sum() for non-numbers

Ron Adam ron3200 at gmail.com
Fri Jul 5 18:35:03 CEST 2013



On 07/05/2013 11:22 AM, Ron Adam wrote:
>
> The '&' is already used for Bitwise And.  How about '++' instead?
>
>
>      'hello ' ++ 'world' == "hello world"
>
>      [1, 3, 3] ++ [4, 5, 6] == [1, 2, 3, 4, 5, 6]
>
>
> While this doesn't seem like a big change, I think it would simplify code
> in many places that is more complicated than it really needs to be.

Hmm... Nope.. '++' is valded for numbers.  <shrug>

Ron



More information about the Python-ideas mailing list