diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-13 20:33:02 (GMT) |
commit | 14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f (patch) | |
tree | 7b150133cdd51df851c6bdaf261cd9ea30c149af /Objects/funcobject.c | |
parent | 654c11ee3a2c9b72c040524c9cc4f95a1858f20b (diff) | |
download | cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.zip cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.gz cpython-14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f.tar.bz2 |
Patch #568124: Add doc string macros.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index a3541e4..f96d0dd 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -493,7 +493,7 @@ cm_init(PyObject *self, PyObject *args, PyObject *kwds) return 0; } -static char classmethod_doc[] = +PyDoc_STRVAR(classmethod_doc, "classmethod(function) -> method\n\ \n\ Convert a function to be a class method.\n\ @@ -512,7 +512,7 @@ If a class method is called for a derived class, the derived class\n\ object is passed as the implied first argument.\n\ \n\ Class methods are different than C++ or Java static methods.\n\ -If you want those, see the staticmethod builtin."; +If you want those, see the staticmethod builtin."); PyTypeObject PyClassMethod_Type = { PyObject_HEAD_INIT(&PyType_Type) @@ -625,7 +625,7 @@ sm_init(PyObject *self, PyObject *args, PyObject *kwds) return 0; } -static char staticmethod_doc[] = +PyDoc_STRVAR(staticmethod_doc, "staticmethod(function) -> method\n\ \n\ Convert a function to be a static method.\n\ @@ -641,7 +641,7 @@ It can be called either on the class (e.g. C.f()) or on an instance\n\ (e.g. C().f()). The instance is ignored except for its class.\n\ \n\ Static methods in Python are similar to those found in Java or C++.\n\ -For a more advanced concept, see the classmethod builtin."; +For a more advanced concept, see the classmethod builtin."); PyTypeObject PyStaticMethod_Type = { PyObject_HEAD_INIT(&PyType_Type) |