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 -- http://mail.python.org/mailman/listinfo/python-list