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
45898dab
Commit
45898dab
authored
Dec 18, 1996
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tabification changes only; the module was already newly named.
parent
74d7ae77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
32 deletions
+37
-32
Modules/operator.c
Modules/operator.c
+37
-32
No files found.
Modules/operator.c
View file @
45898dab
...
...
@@ -145,8 +145,8 @@ op_getslice(s,a)
PyObject
*
a1
;
long
a2
,
a3
;
if
(
!
PyArg_ParseTuple
(
a
,
"Oii"
,
&
a1
,
&
a2
,
&
a3
))
return
NULL
;
if
(
!
PyArg_ParseTuple
(
a
,
"Oii"
,
&
a1
,
&
a2
,
&
a3
))
return
NULL
;
return
PySequence_GetSlice
(
a1
,
a2
,
a3
);
}
...
...
@@ -157,9 +157,11 @@ op_setslice(s,a)
PyObject
*
a1
,
*
a4
;
long
a2
,
a3
;
if
(
!
PyArg_ParseTuple
(
a
,
"OiiO"
,
&
a1
,
&
a2
,
&
a3
,
&
a4
))
return
NULL
;
if
(
!
PyArg_ParseTuple
(
a
,
"OiiO"
,
&
a1
,
&
a2
,
&
a3
,
&
a4
))
return
NULL
;
if
(
-
1
==
PySequence_SetSlice
(
a1
,
a2
,
a3
,
a4
))
return
NULL
;
if
(
-
1
==
PySequence_SetSlice
(
a1
,
a2
,
a3
,
a4
))
return
NULL
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -172,9 +174,11 @@ op_delslice(s,a)
PyObject
*
a1
;
long
a2
,
a3
;
if
(
!
PyArg_ParseTuple
(
a
,
"Oii"
,
&
a1
,
&
a2
,
&
a3
))
return
NULL
;
if
(
!
PyArg_ParseTuple
(
a
,
"Oii"
,
&
a1
,
&
a2
,
&
a3
))
return
NULL
;
if
(
-
1
==
PySequence_DelSlice
(
a1
,
a2
,
a3
))
return
NULL
;
if
(
-
1
==
PySequence_DelSlice
(
a1
,
a2
,
a3
))
return
NULL
;
Py_INCREF
(
Py_None
);
return
Py_None
;
...
...
@@ -261,7 +265,8 @@ initoperator()
/* Add some symbolic constants to the module */
d
=
PyModule_GetDict
(
m
);
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromString
(
"$Rev$"
));
PyDict_SetItemString
(
d
,
"__version__"
,
PyString_FromString
(
"$Rev$"
));
/* Check for errors */
if
(
PyErr_Occurred
())
...
...
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