summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-16 23:50:53 +0100
committerVictor Stinner <victor.stinner@gmail.com>2017-01-16 23:50:53 +0100
commit7e1c513a9ea54b50e4c3b947208d1306aba5362f (patch)
tree0d36070877a903defdf32c07e20f607518763d2d /Include
parent7542c621d4273f5ea075c1127e5dbdb33ff6677f (diff)
downloadcpython-7e1c513a9ea54b50e4c3b947208d1306aba5362f.tar.gz
Add _PyStack_AsTupleSlice() helper
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 3ca283aa12..d96e8a5424 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -160,6 +160,12 @@ PyAPI_FUNC(PyObject*) _PyStack_AsTuple(
PyObject **stack,
Py_ssize_t nargs);
+PyAPI_FUNC(PyObject*) _PyStack_AsTupleSlice(
+ PyObject **stack,
+ Py_ssize_t nargs,
+ Py_ssize_t start,
+ Py_ssize_t end);
+
/* Convert keyword arguments from the (stack, kwnames) format to a Python
dictionary.