]> granicus.if.org Git - python/commitdiff
14 years later, we still don't know what it's for.
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Apr 2010 15:38:25 +0000 (15:38 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 6 Apr 2010 15:38:25 +0000 (15:38 +0000)
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).

Python/getargs.c

index b112650910ce9b7a76efc91a7ab6d0b6f3981a86..502e9cdf89a73dbde486fcb27f52f05deff70c30 100644 (file)
@@ -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);