O'Reilly logo
  • Teo Argentieri thinks this is interesting:

Note that Python computes each default value precisely once

From

Cover of Python in a Nutshell, 3rd Edition

Note

Really important!! Even if we add a identifier=expression parameter, this will be performed once, so if the object is mutable it will be updated at every function call without resetting the initial default value!