Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 58627:75bb2f1691c0 2.6
Merged revisions 77892 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77892 | victor.stinner | 2010-01-31 23:32:15 +0100 (dim., 31 janv. 2010) | 4 lines
Issue #7819: Check sys.call_tracing() arguments types.
py3k was already patched by issue #3661.
........
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Sun, 31 Jan 2010 22:33:22 +0000 |
| parents | e17c18a6caec |
| children | 687d8517a0c3 |
comparison
equal
deleted
inserted
replaced
| 58625:ef5639c71964 | 58627:75bb2f1691c0 |
|---|---|
| 800 | 800 |
| 801 static PyObject * | 801 static PyObject * |
| 802 sys_call_tracing(PyObject *self, PyObject *args) | 802 sys_call_tracing(PyObject *self, PyObject *args) |
| 803 { | 803 { |
| 804 PyObject *func, *funcargs; | 804 PyObject *func, *funcargs; |
| 805 if (!PyArg_UnpackTuple(args, "call_tracing", 2, 2, &func, &funcargs)) | 805 if (!PyArg_ParseTuple(args, "OO!:call_tracing", &func, &PyTuple_Type, &funcargs)) |
| 806 return NULL; | 806 return NULL; |
| 807 return _PyEval_CallTracing(func, funcargs); | 807 return _PyEval_CallTracing(func, funcargs); |
| 808 } | 808 } |
| 809 | 809 |
| 810 PyDoc_STRVAR(callstats_doc, | 810 PyDoc_STRVAR(callstats_doc, |
