[Python-checkins] r81588 - in python/branches/py3k: Misc/NEWS Python/getargs.c
victor.stinner
python-checkins at python.org
Fri May 28 23:55:10 CEST 2010
Author: victor.stinner
Date: Fri May 28 23:55:10 2010
New Revision: 81588
Log:
Issue #8837: Remove "O?" format of PyArg_Parse*() functions. The format is no
used anymore and it was never documented.
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/Python/getargs.c
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Fri May 28 23:55:10 2010
@@ -12,6 +12,9 @@
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).
Modified: python/branches/py3k/Python/getargs.c
==============================================================================
--- python/branches/py3k/Python/getargs.c (original)
+++ python/branches/py3k/Python/getargs.c Fri May 28 23:55:10 2010
@@ -1293,17 +1293,6 @@
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);
More information about the Python-checkins
mailing list