mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
printobject now returns an error code
This commit is contained in:
parent
dd0108081b
commit
909336104b
10 changed files with 70 additions and 86 deletions
|
@ -85,7 +85,7 @@ meth_dealloc(m)
|
|||
free((char *)m);
|
||||
}
|
||||
|
||||
static void
|
||||
static int
|
||||
meth_print(m, fp, flags)
|
||||
methodobject *m;
|
||||
FILE *fp;
|
||||
|
@ -96,6 +96,7 @@ meth_print(m, fp, flags)
|
|||
else
|
||||
fprintf(fp, "<built-in method '%s' of some %s object>",
|
||||
m->m_name, m->m_self->ob_type->tp_name);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static object *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue