summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-02-19 14:17:02 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-02-19 14:17:02 (GMT)
commitc42fc65a635b3bcb391c9a163756a692a2d5a7b0 (patch)
tree1587cb6fa141513c4615fd7598a68f2bee3f7961 /Objects
parent82d3c7da8b7ccb68b7bd93bd91bc5785a06e19c8 (diff)
downloadcpython-c42fc65a635b3bcb391c9a163756a692a2d5a7b0.zip
cpython-c42fc65a635b3bcb391c9a163756a692a2d5a7b0.tar.gz
cpython-c42fc65a635b3bcb391c9a163756a692a2d5a7b0.tar.bz2
Backport gvanrossum's checkin of revision 2.80:
Bugfix candidate. Fix SF bug #511603: Error calling str on subclass of int Explicitly fill in tp_str with the same pointer as tp_repr.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/intobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c
index dfb03a9..6c8bdbe 100644
--- a/Objects/intobject.c
+++ b/Objects/intobject.c
@@ -893,7 +893,7 @@ PyTypeObject PyInt_Type = {
0, /* tp_as_mapping */
(hashfunc)int_hash, /* tp_hash */
0, /* tp_call */
- 0, /* tp_str */
+ (reprfunc)int_repr, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */