Issue 1474677: non-keyword argument following keyword (original) (raw)
Issue1474677
This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/43262
classification
Title: | non-keyword argument following keyword | ||
---|---|---|---|
Type: | Stage: | ||
Components: | Interpreter Core | Versions: | Python 2.5 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | nnorwitz | Nosy List: | georg.brandl, nnorwitz, quiver |
Priority: | high | Keywords: |
Created on 2006-04-22 16:11 by quiver, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | |||
---|---|---|---|
File name | Uploaded | Description | Edit |
kwargs-last.diff | georg.brandl,2006-04-29 13:51 |
Messages (5) | ||
---|---|---|
msg28325 - (view) | Author: George Yoshida (quiver) ![]() |
Date: 2006-04-22 16:11 |
def foo(a,b=None):pass foo(b=1,2) With Python 2.5(compiled as of 2006-04-23), this code runs without any error. In older Python(although I didn't check every version of it), I get File "foo.py", line 2 foo(b=1,2) SyntaxError: non-keyword arg after keyword arg | ||
msg28326 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2006-04-25 05:47 |
Logged In: YES user_id=33168 Jeremy, could you look at this? | ||
msg28327 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2006-04-25 05:48 |
Logged In: YES user_id=33168 Confirmed 2.5 behaviour and regression from 2.[34]. | ||
msg28328 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2006-04-29 13:51 |
Logged In: YES user_id=849994 Patch attached. | ||
msg28329 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2006-05-19 06:44 |
Logged In: YES user_id=33168 Thanks! I modified the patch a bit. seen_kw wasn't necessary since nkeywords works just as well. Committed revision 46045. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:17 | admin | set | github: 43262 |
2006-04-22 16:11:44 | quiver | create |