]> granicus.if.org Git - python/commitdiff
Issue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 28 May 2010 21:55:10 +0000 (21:55 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 28 May 2010 21:55:10 +0000 (21:55 +0000)
used anymore and it was never documented.

Misc/NEWS
Python/getargs.c

index 9a8da70003b551bf1b80113b2ac6816b9b1c1b58..2ab9640764e68cb1b43b117170a91bea8141a8e5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@ What's New in Python 3.2 Alpha 1?
 Core and Builtins
 -----------------
 
+- Issue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no
+  used anymore and it was never documented.
+
 - Issue #2844: Make int('42', n) consistently raise ValueError for
   invalid integers n (including n = -909).
 
index e8efb3c27939e7d60dffee0286d8b076d2b0c9b3..ce9f152c9fed4d0c99599d6b0089a6389abf0ea7 100644 (file)
@@ -1292,17 +1292,6 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
             else
                 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 *);