Searched refs:old_doc (Results 1 – 2 of 2) sorted by relevance
604 def rewrite_argument_docstring(old_doc, old_argument, new_argument): argument605 return old_doc.replace('`%s`' % old_argument, '`%s`' % new_argument).replace(
2937 const char *old_doc = _PyType_DocWithoutSignature(type->tp_name, slot->pfunc); in PyType_FromSpecWithBases() local2938 size_t len = strlen(old_doc)+1; in PyType_FromSpecWithBases()2944 memcpy(tp_doc, old_doc, len); in PyType_FromSpecWithBases()5257 const char *old_doc = _PyType_DocWithoutSignature(type->tp_name, in PyType_Ready() local5259 PyObject *doc = PyUnicode_FromString(old_doc); in PyType_Ready()