Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
89f9eb5b
Commit
89f9eb5b
authored
Apr 16, 2017
by
Serhiy Storchaka
Committed by
GitHub
Apr 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050)
parent
5e793217
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
Include/sliceobject.h
Include/sliceobject.h
+0
-5
Misc/NEWS
Misc/NEWS
+0
-5
No files found.
Include/sliceobject.h
View file @
89f9eb5b
...
@@ -38,11 +38,6 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
...
@@ -38,11 +38,6 @@ PyAPI_FUNC(int) PySlice_GetIndicesEx(PySliceObject *r, Py_ssize_t length,
Py_ssize_t
*
start
,
Py_ssize_t
*
stop
,
Py_ssize_t
*
start
,
Py_ssize_t
*
stop
,
Py_ssize_t
*
step
,
Py_ssize_t
*
slicelength
);
Py_ssize_t
*
step
,
Py_ssize_t
*
slicelength
);
#define PySlice_GetIndicesEx(slice, length, start, stop, step, slicelen) ( \
_PySlice_Unpack((PyObject *)(slice), (start), (stop), (step)) < 0 ? \
((*(slicelen) = 0), -1) : \
((*(slicelen) = _PySlice_AdjustIndices((length), (start), (stop), *(step))), \
0))
PyAPI_FUNC
(
int
)
_PySlice_Unpack
(
PyObject
*
slice
,
PyAPI_FUNC
(
int
)
_PySlice_Unpack
(
PyObject
*
slice
,
Py_ssize_t
*
start
,
Py_ssize_t
*
stop
,
Py_ssize_t
*
step
);
Py_ssize_t
*
start
,
Py_ssize_t
*
stop
,
Py_ssize_t
*
step
);
PyAPI_FUNC
(
Py_ssize_t
)
_PySlice_AdjustIndices
(
Py_ssize_t
length
,
PyAPI_FUNC
(
Py_ssize_t
)
_PySlice_AdjustIndices
(
Py_ssize_t
length
,
...
...
Misc/NEWS
View file @
89f9eb5b
...
@@ -111,11 +111,6 @@ Library
...
@@ -111,11 +111,6 @@ Library
- Issue #28925: cPickle now correctly propagates errors when unpickle instances
- Issue #28925: cPickle now correctly propagates errors when unpickle instances
of old-style classes.
of old-style classes.
C API
-----
- Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro.
Documentation
Documentation
-------------
-------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment