Searched refs:old_doc (Results 1 – 2 of 2) sorted by relevance
632 def rewrite_argument_docstring(old_doc, old_argument, new_argument): argument633 return old_doc.replace('`%s`' % old_argument, '`%s`' % new_argument).replace(
3018 const char *old_doc = _PyType_DocWithoutSignature(type->tp_name, slot->pfunc); in PyType_FromModuleAndSpec() local3019 size_t len = strlen(old_doc)+1; in PyType_FromModuleAndSpec()3026 memcpy(tp_doc, old_doc, len); in PyType_FromModuleAndSpec()5531 const char *old_doc = _PyType_DocWithoutSignature(type->tp_name, in PyType_Ready() local5533 PyObject *doc = PyUnicode_FromString(old_doc); in PyType_Ready()