Issue 1909: Backport: Mixing default keyword arguments with *args

Created on 2008-01-22 20:04 by rhettinger, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (10) msg61530 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-01-22 20:04
Need to backport Py3.0's functionality so that the following is valid
syntax:

   def f(a, *args, v=None):
       . . .
msg61534 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-22 20:24
Why have you assigned the bug to me? I ain't no grammar expert.
msg61535 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2008-01-22 20:26
I mistakenly thought you had done this for Py3.0.
msg61536 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-22 20:32
Raymond Hettinger wrote:
> Raymond Hettinger added the comment:
> 
> I mistakenly thought you had done this for Py3.0.

You're welcome, pal! :) I've created a backport of the kw only functions
for 2.6 but that doesn't make me an expert on grammar.
msg104446 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-04-28 18:14
Can this be closed as either fixed or out-or-date, as the case may be?
msg104447 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2010-04-28 18:20
It should still be done if any one has the time.
Guido approved it long ago.
msg104450 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-04-28 19:11
Ok, I though 2.7 was in feature freeze.
Updating version.
msg104461 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-04-28 20:11
Besides someone having to produce the patch, it would also need the release manager's approval (Benjamin).
msg104462 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-04-28 20:23
Wouldn't this imply a full backport of keyword only arguments? That seems unlikely at the moment.
msg108756 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2010-06-26 22:56
Now it's too late for this. Closing as out of date.