diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-06 16:01:57 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-04-06 16:01:57 (GMT) |
commit | f96b78437bdda6e14d6b9b7edb54b8987de42915 (patch) | |
tree | bb7081b1cf473f01f224a2981c48511ff38d965c /Python/getargs.c | |
parent | 3dd1bfc614ac59a3072fbc1e9387c567708fffef (diff) | |
download | cpython-f96b78437bdda6e14d6b9b7edb54b8987de42915.zip cpython-f96b78437bdda6e14d6b9b7edb54b8987de42915.tar.gz cpython-f96b78437bdda6e14d6b9b7edb54b8987de42915.tar.bz2 |
Merged revisions 79837 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79837 | antoine.pitrou | 2010-04-06 17:38:25 +0200 (mar., 06 avril 2010) | 19 lines
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 39be98c..17c5317 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1849,16 +1849,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); |