Mercurial > cpython-lru_cache-weakref
diff Objects/structseq.c @ 44684:a00d90004a25 legacy-trunk
Issue 1820: structseq objects did not work with the % formatting operator or isinstance(t, tuple).
Orignal patch (without tests) by Leif Walsh.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Tue, 15 Jan 2008 03:02:37 +0000 |
| parents | 33f6709075e8 |
| children | 8689f46d25d6 |
line wrap: on
line diff
--- a/Objects/structseq.c Tue Jan 15 01:55:32 2008 +0000 +++ b/Objects/structseq.c Tue Jan 15 03:02:37 2008 +0000 @@ -460,7 +460,7 @@ 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 */
