On Tue, 31 Jan 2017, Riccardo (Jack) Lucchetti wrote:
 On Tue, 31 Jan 2017, Sven Schreiber wrote:
> Hi,
> 
> the following produces 5 (note the extra "+"):
> 
> hey = 2 + + 3
> print hey
> 
> I think this should cause a syntax error instead. I kind of 
> understand/guess that the second "+" is interpreted as a unary (redundant)
> operator relating to the following "3", and maybe that's correct. But
my 
> gut feeling still says it's unfortunate...
 It may be unfortunate, but then I guess you'd have to convince Octave, Julia 
 and R too ;) 
And Python!!!
-------------------------------------------------------
   Riccardo (Jack) Lucchetti
   Dipartimento di Scienze Economiche e Sociali (DiSES)
   Università Politecnica delle Marche
   (formerly known as Università di Ancona)
   r.lucchetti(a)univpm.it
   
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------