mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
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.
This commit is contained in:
parent
ab034fab03
commit
e75bfde7e9
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue