FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/cpython/sliceobject.h at 3.15 · python/cpython · GitHub
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.3k
(2.3k)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
cpython
/
sliceobject.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (17 loc) · 746 Bytes
Breadcrumbs
cpython
/
Include
/
cpython
/
sliceobject.h
Copy path
File metadata and controls
20 lines (17 loc) · 746 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef
_Py_CPYTHON_SLICEOBJECT_H
# error
"this header file must not be included directly"
#endif
/* Slice object interface */
/*
A slice object containing start, stop, and step data members (the
names are from range). After much talk with Guido, it was decided to
let these be any arbitrary python type. Py_None stands for omitted values.
*/
typedef
struct
{
PyObject_HEAD
PyObject
*
start
,
*
stop
,
*
step
;
/* not NULL */
}
PySliceObject
;
PyAPI_FUNC
(
PyObject
*
)
_PySlice_FromIndices
(
Py_ssize_t
start
,
Py_ssize_t
stop
);
PyAPI_FUNC
(
int
)
_PySlice_GetLongIndices
(
PySliceObject
*
self
,
PyObject
*
length
,
PyObject
*
*
start_ptr
,
PyObject
*
*
stop_ptr
,
PyObject
*
*
step_ptr
);
Back
|
FazBrowse Home
|
New Git URL