Documentation, assignment in expression.

Terry Reedy tjreedy at udel.edu
Mon Mar 26 18:00:50 CEST 2012


On 3/26/2012 1:36 AM, Steven D'Aprano wrote:
>
> (I seem to recall a language that used a single = for both assignment and
> equality testing, guessing which one you meant from context. BASIC
> perhaps?

Right. In some Basics, such as MS GW-Basic (I still have their book), a 
= b = c meant a = (b = c), or in Python, a = b==c.

-- 
Terry Jan Reedy




More information about the Python-list mailing list