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

The Python Launcher for Unix

The problemLet's say you have more than one version of Python installed on your machine. What version does python3 point to? If you said, "the newest version", you may actually be wrong. That's because python3 points at the last version of Python you inst... (more…)

Read more »