On 24 February 2014 16:08, Ron Adam <ron3200@gmail.com> wrote:
By using the '.' we can see the difference
But the difference is precisely those bytecodes that are needed to replicate the argument that's required because that's not what update does. Show me the bytecode you propose for your proposed operator, and how it's faster, and (assuming it's an improvement) explain why it can't be achieved via bytecode optimisation of the existing code that the compiler could be updated to do. Otherwise your "it's faster" argument doesn't hold water. As regards "it's a single expression", I still say that's purely a style issue - Python doesn't place any emphasis on being able to write things as a single expression (quite the opposite, in fact - complex expressions are generally a sign of bad style in Python). Paul