mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Issue 1820: structseq objects did not work with the % formatting operator or isinstance(t, tuple).
Orignal patch (without tests) by Leif Walsh.
This commit is contained in:
parent
a01ed03058
commit
c216df9288
4 changed files with 12 additions and 1 deletions
|
@ -460,7 +460,7 @@ static PyTypeObject _struct_sequence_template = {
|
|||
structseq_methods, /* tp_methods */
|
||||
NULL, /* tp_members */
|
||||
0, /* tp_getset */
|
||||
0, /* tp_base */
|
||||
&PyTuple_Type, /* tp_base */
|
||||
0, /* tp_dict */
|
||||
0, /* tp_descr_get */
|
||||
0, /* tp_descr_set */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue