commit | 1c67dd9b154d57baf58ed081767e199af1e84923 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Fri Oct 14 15:16:45 2011 +0200 |
committer | Martin v. Löwis <martin@v.loewis.de> | Fri Oct 14 15:16:45 2011 +0200 |
tree | 0d6c95e99785f9b8381c808a5cb433adf319eda5 | |
parent | bd928fef428e48084ff29ece0e21d07ad86d0793 [diff] [blame] |
Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.
diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 6e2d34e..b328a45 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c
@@ -1311,7 +1311,7 @@ in dict of the subclass instance instead, otherwise it gets shadowed by __doc__ in the class's dict. */ - int err = PyObject_SetAttrString(self, "__doc__", get_doc); + int err = _PyObject_SetAttrId(self, &PyId___doc__, get_doc); Py_DECREF(get_doc); if (err < 0) return -1;