[Python-checkins] r79841 - in python/branches/py3k: Python/getargs.c

antoine.pitrou python-checkins at python.org
Tue Apr 6 18:01:57 CEST 2010


Author: antoine.pitrou
Date: Tue Apr  6 18:01:57 2010
New Revision: 79841

Log:
Merged revisions 79837 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79837 | antoine.pitrou | 2010-04-06 17:38:25 +0200 (mar., 06 avril 2010) | 19 lines
  
  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 at 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).
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Python/getargs.c

Modified: python/branches/py3k/Python/getargs.c
==============================================================================
--- python/branches/py3k/Python/getargs.c	(original)
+++ python/branches/py3k/Python/getargs.c	Tue Apr  6 18:01:57 2010
@@ -1849,16 +1849,6 @@
 				(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);


More information about the Python-checkins mailing list