[Python-Dev] sum(...) limitation (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Aug 9 07:36:11 CEST 2014
- Previous message: [Python-Dev] sum(...) limitation
- Next message: [Python-Dev] sum(...) limitation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven D'Aprano wrote:
I've long believed that + is the wrong operator for concatenating strings, and that & makes a much better operator.
Do you have a reason for preferring '&' in particular, or do you just want something different from '+'?
Personally I can't see why "bitwise and" on strings should be a better metaphor for concatenation that "addition". :-)
-- Greg
- Previous message: [Python-Dev] sum(...) limitation
- Next message: [Python-Dev] sum(...) limitation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]