A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-April/088840.html below:

[Python-Dev] Python-Dev Digest, Vol 69, Issue 143

[Python-Dev] Python-Dev Digest, Vol 69, Issue 143Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 17 06:14:06 CEST 2009
Steven D'Aprano wrote:
> it should be obvious in the 
> same way that string concatenation is different from numerical 
> addition:
> 
> 1 + 2 = 2 + 1
> '1' + '2' != '2' + '1'

However, the proposed arithmetic isn't just non-
commutative, it's non-associative, which is a
much rarer and more surprising thing. We do
at least have

   ('1' + '2') + '3' == '1' + ('2' + '3')

-- 
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4