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

Note that Python computes each default value precisely once


Cover of Python in a Nutshell, 3rd Edition


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!