diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-28 21:55:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-28 21:55:10 (GMT) |
commit | 33109a142b1c94753b29eff6efe14c1538234bcb (patch) | |
tree | a2a96c036ea24fce8f68a796e4974ab0cb4c2554 /Python | |
parent | c3acbc36d0aa52c021784d1c1324814a3ed61801 (diff) | |
download | cpython-33109a142b1c94753b29eff6efe14c1538234bcb.zip cpython-33109a142b1c94753b29eff6efe14c1538234bcb.tar.gz cpython-33109a142b1c94753b29eff6efe14c1538234bcb.tar.bz2 |
Issue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no
used anymore and it was never documented.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index e8efb3c..ce9f152 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -1293,17 +1293,6 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags, return converterr(type->tp_name, arg, msgbuf, bufsize); } - else if (*format == '?') { - inquiry pred = va_arg(*p_va, inquiry); - p = va_arg(*p_va, PyObject **); - format++; - if ((*pred)(arg)) - *p = arg; - else - return converterr("(unspecified)", - arg, msgbuf, bufsize); - - } else if (*format == '&') { typedef int (*converter)(PyObject *, void *); converter convert = va_arg(*p_va, converter); |