Hi Dom In your original post you used your proposed addition to write code that provides a way of handling defaults different from the standard mechanism, and perhaps in your opinion better.
The following example tells us something about defaults mechanism already provided by Python: >>> def f(a, b=1, c=2): return a, b, c ... >>> f(0) (0, 1, 2) >>> f.__defaults__ (1, 2) >>> f.__defaults__ = (0, 1, 2) >>> f() (0, 1, 2) >>> f.__defaults__ = (2, 1, 0) >>> f() (2, 1, 0) I am suspicious of your example in your original post because it does not explicitly consider the possibilities already provided by Python for changing default values on the fly. I hope this helps. Jonathan
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/VAFITY5GD2JF7TCDDH356226ZUMP4IJQ/ Code of Conduct: http://python.org/psf/codeofconduct/