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 -- 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/N5WEMH7FMX5RX55YH2YV6OBDBWLAQL5L/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to