>
> And what would you do if you wanted to call:
>
> self.do_something(positional, keyword=keyword, keyword1=somethingelse,
> keyword2=keyword2)
>
> ?
>
> Eric
>

I think this is still pretty clear:

self.do_something(positional, *, keyword, keyword1=somethingelse, keyword2)

but if you don't like that you can easily add a restriction that no
explicit keywords are allowed after *, so:

self.do_something(positional, keyword1=somethingelse, *, keyword2, keyword)
_______________________________________________
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/KTJBGO3N3K736YO3B3E4U7BKE5KV2BIY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to