aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-12-09 22:56:13 +0000
committerTim Peters <tim.peters@gmail.com>2002-12-09 22:56:13 +0000
commitbca1cbc6f895c7f9f003877b1cfc0c649387ae1c (patch)
treedff6bc8f6b8f2c8eab0a06e4921d7e6521f0a396 /Include/descrobject.h
parentAdd test_unicode() to ensure that 1) textwrap doesn't crash on unicode (diff)
downloadcpython-bca1cbc6f895c7f9f003877b1cfc0c649387ae1c.tar.gz
cpython-bca1cbc6f895c7f9f003877b1cfc0c649387ae1c.tar.bz2
cpython-bca1cbc6f895c7f9f003877b1cfc0c649387ae1c.zip
SF 548651: Fix the METH_CLASS implementation.
Most of these patches are from Thomas Heller, with long lines folded by Tim. The change to test_descr.py is from Guido. See the bug report. Not a bugfix candidate -- METH_CLASS is new in 2.3.
Diffstat (limited to 'Include/descrobject.h')
-rw-r--r--Include/descrobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/descrobject.h b/Include/descrobject.h
index 6fb6a95cc4e..a74af6009bc 100644
--- a/Include/descrobject.h
+++ b/Include/descrobject.h
@@ -70,6 +70,7 @@ typedef struct {
PyAPI_DATA(PyTypeObject) PyWrapperDescr_Type;
PyAPI_FUNC(PyObject *) PyDescr_NewMethod(PyTypeObject *, PyMethodDef *);
+PyAPI_FUNC(PyObject *) PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *);
PyAPI_FUNC(PyObject *) PyDescr_NewMember(PyTypeObject *,
struct PyMemberDef *);
PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,