[Python-ideas] keyword arguments everywhere (stdlib) - issue8706

Ethan Furman ethan at stoneleaf.us
Fri Mar 2 21:32:21 CET 2012


Guido van Rossum wrote:
> I would actually like to see a syntactic feature to state that an
> argument *cannot* be given as a keyword argument (just as we already
> added syntax to state that it *must* be a keyword).

So something like:

   def ord(char, ?):

   def split(self, char, ?, count)

   def canary(breed, ?, color, wingspan, *, name)

~Ethan~



More information about the Python-ideas mailing list