diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-06 15:38:25 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-06 15:38:25 (GMT) |
commit | 72ec2e2bdf4a861b85ed7e4b038b134d8b4e4ea4 (patch) | |
tree | d45a35123029d04a3731070cf4736f989fd438ca /Python/getargs.c | |
parent | 6a92860a3ed4a6deaef31d641c4a91a4b396ee2d (diff) | |
download | cpython-72ec2e2bdf4a861b85ed7e4b038b134d8b4e4ea4.zip cpython-72ec2e2bdf4a861b85ed7e4b038b134d8b4e4ea4.tar.gz cpython-72ec2e2bdf4a861b85ed7e4b038b134d8b4e4ea4.tar.bz2 |
14 years later, we still don't know what it's for.
Spotted by the PyPy developers.
Original commit is:
branch: trunk
user: guido
date: Mon Aug 19 21:32:04 1996 +0200
files: Python/getargs.c
description:
[svn r6499] Support for keyword arguments (PyArg_ParseTupleAndKeywords) donated by
Geoff Philbrick <philbric@delphi.hks.com> (slightly changed by me).
Also a little change to make the file acceptable to K&R C compilers
(HPUX, SunOS 4.x).
Diffstat (limited to 'Python/getargs.c')
-rw-r--r-- | Python/getargs.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index b112650..502e9cd 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1767,16 +1767,6 @@ skipitem(const char **p_format, va_list *p_va, int flags) (void) va_arg(*p_va, PyTypeObject*); (void) va_arg(*p_va, PyObject **); } -#if 0 -/* I don't know what this is for */ - else if (*format == '?') { - inquiry pred = va_arg(*p_va, inquiry); - format++; - if ((*pred)(arg)) { - (void) va_arg(*p_va, PyObject **); - } - } -#endif else if (*format == '&') { typedef int (*converter)(PyObject *, void *); (void) va_arg(*p_va, converter); |