summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-16 22:50:53 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-16 22:50:53 (GMT)
commit69de71b2557509d6b3f914a36596fee833d0594b (patch)
tree355fde9daf05d08a8d55c09a1c8021501c80d032 /Include
parent7fc252adfbedece75f2330bcfdadbf84dee7836f (diff)
downloadcpython-69de71b2557509d6b3f914a36596fee833d0594b.zip
cpython-69de71b2557509d6b3f914a36596fee833d0594b.tar.gz
cpython-69de71b2557509d6b3f914a36596fee833d0594b.tar.bz2
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 3ca283a..d96e8a5 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.