Object Spread Operator for Python

Say you have a dictionary that you want to both copy and update. In JavaScript, this is a common pattern that gets its own syntax, called the object spread operator: const oldObject = { hello: ‘world’, foo: ‘bar’ } const newObject = { …oldObject, foo: ‘… Read more

Similar