semantics of ** (unexpected/inconsistent?)

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Nov 30 09:46:42 CET 2009


Esmail wrote:

> Wow .. never heard of Concatenative_languages languages before or the
> distinction you make. Your distinction explains the behavior, but I
> find it somewhat counter-intuitive.

You shouldn't find it any more surprising than the fact that

   a = 2 + 3
   print a * 5

gives a different result from

   print 2 + 3 * 5

-- 
Greg



More information about the Python-list mailing list