A C & Python chained assignment gotcha

Date Tags Python / C++

Late last night I had a marathon debugging session where I discovered I had been burned by not fully understanding chaining assignment statements in Python. I was porting some C code to Python that had some chained assignment expressions. C and C++ programmers are well used to this idiom which ...

View comments.

more ...