Ok my thoughts was that python is such an elegant language, a process that 
could add a non static value (a callable or generator for example) to a 
function's default parameter would add more elegance to the default handling.

what a decorator and a helper function do is to double the amount of functions 
to make one function.  So in order to understand such a function, the reader 
has to understand 2 functions. In that case the reader would be better off with 
the normal.

if curr_time == None:
      curr_time = datetime.datetime.now()

you might say that the reader has to understand what datetime.datetime.now() 
but there is no surprises with that function.
_______________________________________________
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/3I6RAUJC2GNA3KNKXT43WZ3KU7MZIHDH/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to