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:
Raymond Hettinger 2008-01-15 03:02:37 +00:00
parent a01ed03058
commit c216df9288
4 changed files with 12 additions and 1 deletions

View file

@ -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 */