diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-05-28 15:16:33 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2019-05-28 15:16:33 (GMT) |
commit | 3c8724fc60163f4f3c3b0d531c84cc7b36783f82 (patch) | |
tree | bb195253b921a259f0a6e02ffc80f4eb6ad16738 /Include/sliceobject.h | |
parent | 17a5588740b3d126d546ad1a13bdac4e028e6d50 (diff) | |
download | cpython-3c8724fc60163f4f3c3b0d531c84cc7b36783f82.zip cpython-3c8724fc60163f4f3c3b0d531c84cc7b36783f82.tar.gz cpython-3c8724fc60163f4f3c3b0d531c84cc7b36783f82.tar.bz2 |
bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)
Diffstat (limited to 'Include/sliceobject.h')
-rw-r--r-- | Include/sliceobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/sliceobject.h b/Include/sliceobject.h index c238b09..aae6f3c 100644 --- a/Include/sliceobject.h +++ b/Include/sliceobject.h @@ -40,9 +40,11 @@ PyAPI_FUNC(int) _PySlice_GetLongIndices(PySliceObject *self, PyObject *length, #endif PyAPI_FUNC(int) PySlice_GetIndices(PyObject *r, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step); +Py_DEPRECATED(3.7) PyAPI_FUNC(int) PySlice_GetIndicesEx(PyObject *r, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, - Py_ssize_t *step, Py_ssize_t *slicelength) Py_DEPRECATED(3.7); + Py_ssize_t *step, + Py_ssize_t *slicelength); #if !defined(Py_LIMITED_API) || (Py_LIMITED_API+0 >= 0x03050400 && Py_LIMITED_API+0 < 0x03060000) || Py_LIMITED_API+0 >= 0x03060100 #define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \ |