Skip to content

Commit 72ec2e2

Browse files
committed
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).
1 parent 6a92860 commit 72ec2e2

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Python/getargs.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,16 +1767,6 @@ skipitem(const char **p_format, va_list *p_va, int flags)
17671767
(void) va_arg(*p_va, PyTypeObject*);
17681768
(void) va_arg(*p_va, PyObject **);
17691769
}
1770-
#if 0
1771-
/* I don't know what this is for */
1772-
else if (*format == '?') {
1773-
inquiry pred = va_arg(*p_va, inquiry);
1774-
format++;
1775-
if ((*pred)(arg)) {
1776-
(void) va_arg(*p_va, PyObject **);
1777-
}
1778-
}
1779-
#endif
17801770
else if (*format == '&') {
17811771
typedef int (*converter)(PyObject *, void *);
17821772
(void) va_arg(*p_va, converter);

0 commit comments

Comments
 (0)