diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-13 17:18:45 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-13 17:18:45 (GMT) |
commit | 858e34f6499ede1c2ab6e1f188449e2c13ef5407 (patch) | |
tree | 434a5f21c627d7a81305c10ccf7b91118b829e42 | |
parent | f9dd0f19240b668d41dccdcdeaf8155eb366aeef (diff) | |
download | cpython-858e34f6499ede1c2ab6e1f188449e2c13ef5407.zip cpython-858e34f6499ede1c2ab6e1f188449e2c13ef5407.tar.gz cpython-858e34f6499ede1c2ab6e1f188449e2c13ef5407.tar.bz2 |
Allow docstrings to be removed during compilation
-rw-r--r-- | Objects/typeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index bb05e6b..809e006 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -955,9 +955,9 @@ static PyGetSetDef subtype_getsets[] = { /* Not all objects have these attributes! The descriptor's __get__ method may raise AttributeError. */ {"__dict__", subtype_dict, subtype_setdict, - "dictionary for instance variables (if defined)"}, + PyDoc_STR("dictionary for instance variables (if defined)")}, {"__weakref__", subtype_getweakref, NULL, - "list of weak references to the object (if defined)"}, + PyDoc_STR("list of weak references to the object (if defined)")}, {0} }; @@ -1878,7 +1878,7 @@ object_set_class(PyObject *self, PyObject *value, void *closure) static PyGetSetDef object_getsets[] = { {"__class__", object_get_class, object_set_class, - "the object's class"}, + PyDoc_STR("the object's class")}, {0} }; |