summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-07-01 18:52:31 (GMT)
committerGuido van Rossum <guido@python.org>1991-07-01 18:52:31 (GMT)
commit2fe53f7fec8e2c2a83e1d587633f2765fb829436 (patch)
treee3b2908d27e91e5f20a68d1170c207e17e36ae1b /Objects
parent4dd2a7e45b649f6e956dd9e644e9df7b443bf176 (diff)
downloadcpython-2fe53f7fec8e2c2a83e1d587633f2765fb829436.zip
cpython-2fe53f7fec8e2c2a83e1d587633f2765fb829436.tar.gz
cpython-2fe53f7fec8e2c2a83e1d587633f2765fb829436.tar.bz2
The print operation now returns status!
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index be96de4..0b01bf5 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -28,13 +28,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Type object implementation */
-static void
+static int
type_print(v, fp, flags)
typeobject *v;
FILE *fp;
int flags;
{
fprintf(fp, "<type '%s'>", v->tp_name);
+ return 0;
}
static object *