diff options
author | Guido van Rossum <guido@python.org> | 2001-09-24 16:03:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-24 16:03:59 (GMT) |
commit | ff0e6d6ef542b5b4f3c31786aa152cec68598d4f (patch) | |
tree | 69a9517a7f7d6616a1c24d719f6a974daf1d00f2 /Objects | |
parent | f244b2e47c3d8b60c03225916cb6f80db8b81d57 (diff) | |
download | cpython-ff0e6d6ef542b5b4f3c31786aa152cec68598d4f.zip cpython-ff0e6d6ef542b5b4f3c31786aa152cec68598d4f.tar.gz cpython-ff0e6d6ef542b5b4f3c31786aa152cec68598d4f.tar.bz2 |
Fix the baffler that Tim reported: sometimes the repr() of an object
looks like <X object at ...>, sometimes it says <X instance at ...>.
Make this uniformly say <X object at ...>.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 1842f3c..20c149e 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1157,12 +1157,12 @@ object_repr(PyObject *self) if (name == NULL) return NULL; if (mod != NULL && strcmp(PyString_AS_STRING(mod), "__builtin__")) - rtn = PyString_FromFormat("<%s.%s instance at %p>", + rtn = PyString_FromFormat("<%s.%s object at %p>", PyString_AS_STRING(mod), PyString_AS_STRING(name), self); else - rtn = PyString_FromFormat("<%s instance at %p>", + rtn = PyString_FromFormat("<%s object at %p>", type->tp_name, self); Py_XDECREF(mod); Py_DECREF(name); |