1165
1165
static PyTypeObject PatienceSequenceMatcherType = {
1166
PyObject_HEAD_INIT(NULL)
1167
.tp_name = "PatienceSequenceMatcher",
1168
.tp_basicsize = sizeof(PatienceSequenceMatcher),
1169
.tp_dealloc = (destructor)PatienceSequenceMatcher_dealloc,
1170
.tp_flags = Py_TPFLAGS_DEFAULT,
1171
.tp_doc = PatienceSequenceMatcher_doc,
1172
.tp_methods = PatienceSequenceMatcher_methods,
1173
.tp_new = PatienceSequenceMatcher_new,
1166
PyVarObject_HEAD_INIT(NULL, 0)
1167
"PatienceSequenceMatcher", /* tp_name */
1168
sizeof(PatienceSequenceMatcher), /* tp_basicsize */
1169
sizeof(PyObject *), /* tp_itemsize */
1170
(destructor)PatienceSequenceMatcher_dealloc, /* tp_dealloc */
1176
0, /* tp_as_number */
1177
0, /* tp_as_sequence */
1178
0, /* tp_as_mapping */
1182
0, /* tp_getattro */
1183
0, /* tp_setattro */
1184
0, /* tp_as_buffer */
1185
Py_TPFLAGS_DEFAULT, /* tp_flags */
1186
PatienceSequenceMatcher_doc, /* tp_doc */
1187
0, /* tp_traverse */
1189
0, /* tp_richcompare */
1190
0, /* tp_weaklistoffset */
1191
// without implementing tp_iter, Python will fall back to PySequence*
1192
// which seems to work ok, we may need something faster/lighter in the
1195
0, /* tp_iternext */
1196
PatienceSequenceMatcher_methods, /* tp_methods */
1201
0, /* tp_descr_get */
1202
0, /* tp_descr_set */
1203
0, /* tp_dictoffset */
1206
PatienceSequenceMatcher_new, /* tp_new */