
Will we be able to splat/unpack the `?`?
args = get_starting_list_values() args (1, 2, 3) dd = defaultdict([*?]) dd["spam"] [1, 2, 3]
or:
kwargs = get_kwargs() kwargs {'x': 1, 'y' 2, 'z': 3} dd = defaultdict(Node(**?)) dd["eggs"] Node(x=1, y=2, z=3)
--- Ricky. "I've never met a Kentucky man who wasn't either thinking about going home or actually going home." - Happy Chandler On Wed, Sep 29, 2021 at 9:03 AM Chris Angelico <rosuav@gmail.com> wrote:
On Wed, Sep 29, 2021 at 10:56 PM Dominik Vilsmeier <dominik.vilsmeier@gmx.de> wrote:
members.sort(key=(?[1], ?[0]))
How do you know whether this is one function that returns a tuple, or a tuple of two functions?
ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@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/LFSBND... Code of Conduct: http://python.org/psf/codeofconduct/