diff options
author | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-02-29 13:59:29 +0000 |
commit | 43713e5a2899930a8698e244b0d0fef59a676d17 (patch) | |
tree | 3d9740aff47f70cea403a2c924a37b468d1eded6 /Python/bltinmodule.c | |
parent | a9b2b4be26df7c3da8a20d1a5f4d2b796e455b4b (diff) | |
download | cpython-git-43713e5a2899930a8698e244b0d0fef59a676d17.tar.gz |
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index bfbce43d22..3fafa5d50b 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -846,7 +846,7 @@ builtin_globals(self, args) { PyObject *d; - if (!PyArg_ParseTuple(args, "")) + if (!PyArg_ParseTuple(args, ":globals")) return NULL; d = PyEval_GetGlobals(); Py_INCREF(d); @@ -1212,7 +1212,7 @@ builtin_intern(self, args) PyObject *args; { PyObject *s; - if (!PyArg_ParseTuple(args, "S", &s)) + if (!PyArg_ParseTuple(args, "S:intern", &s)) return NULL; Py_INCREF(s); PyString_InternInPlace(&s); @@ -1383,7 +1383,7 @@ builtin_locals(self, args) { PyObject *d; - if (!PyArg_ParseTuple(args, "")) + if (!PyArg_ParseTuple(args, ":locals")) return NULL; d = PyEval_GetLocals(); Py_INCREF(d); @@ -2091,7 +2091,7 @@ builtin_isinstance(self, args) static PyObject *__class__ = NULL; int retval = 0; - if (!PyArg_ParseTuple(args, "OO", &inst, &cls)) + if (!PyArg_ParseTuple(args, "OO:isinstance", &inst, &cls)) return NULL; if (PyClass_Check(cls)) { @@ -2150,7 +2150,7 @@ builtin_issubclass(self, args) PyObject *cls; int retval; - if (!PyArg_ParseTuple(args, "OO", &derived, &cls)) + if (!PyArg_ParseTuple(args, "OO:issubclass", &derived, &cls)) return NULL; if (!PyClass_Check(derived) || !PyClass_Check(cls)) { |