diff options
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index bce7fdf8da..ab2cf181cc 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -228,6 +228,18 @@ tupleslice(a, ilow, ihigh) return (object *)np; } +object * +gettupleslice(op, i, j) + object *op; + int i, j; +{ + if (op == NULL || !is_tupleobject(op)) { + err_badcall(); + return NULL; + } + return tupleslice((tupleobject *)op, i, j); +} + static object * tupleconcat(a, bb) register tupleobject *a; |