mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)
This commit is contained in:
parent
17a5588740
commit
3c8724fc60
14 changed files with 136 additions and 104 deletions
|
|
@ -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) ( \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue