On 3/16/21 8:22 AM, Roland Puntaier via Python-ideas wrote:
I'd like to write
def my_long_function_name(
, my_long_option_2 = "some default expression 1".split()
, my_long_option_1 = "some default expression 1".split()
):
pass
Why not write this instead?:
def my_long_function_name(
my_long_option_2="some default expression 1".split(),
my_long_option_1="some default expression 1".split(),
):
pass
It has all the advantages you are looking for, plus it isn't
odd-looking, and it's already supported.
--Ned.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/N5WEMH7FMX5RX55YH2YV6OBDBWLAQL5L/
Code of Conduct: http://python.org/psf/codeofconduct/