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.
Created on 2016年02月24日 14:46 by VHalperin, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| getargs.c | VHalperin, 2016年02月24日 14:46 | Suggested update for Python 2.7.11 | ||
| Messages (2) | |||
|---|---|---|---|
| msg260807 - (view) | Author: Victor Halperin (VHalperin) | Date: 2016年02月24日 14:46 | |
Two functions read the format string in Python/getargs.c: convertitem() for present arguments and skipitem() for missing ones. They must agree on the format; in fact, a comment to this effect is written right above convertitem(). Nevertheless, skipitem() only allows '*' modifier with 's' and 'z' formats, unlike convertitem(), that correctly processes 'w*'. As a result, 'w*' works if an array arguments is supplied, and fails if it is omitted. Suggested fix: add c == 'w' comparison to the line with *format == '*' in skipitem(). |
|||
| msg260819 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年02月24日 16:49 | |
This is a duplicate of issue23927. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:27 | admin | set | github: 70614 |
| 2016年02月24日 16:49:06 | serhiy.storchaka | set | status: open -> closed superseder: getargs.c skipitem() doesn't skip 'w*' nosy: + serhiy.storchaka messages: + msg260819 resolution: duplicate stage: resolved |
| 2016年02月24日 14:46:26 | VHalperin | create | |