summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2007-08-30 22:57:53 +0000
committerThomas Wouters <thomas@python.org>2007-08-30 22:57:53 +0000
commitd2cf20eea2338a0369d4a5707adb01b201f7dfb2 (patch)
tree59fd4a094906997ae2b0cd520ff09010457da680 /Include
parent582b5866174d20f7c027cbb6fb757fefb382f96f (diff)
downloadcpython-git-d2cf20eea2338a0369d4a5707adb01b201f7dfb2.tar.gz
Remove the simple slicing API. All slicing is now done with slice objects.
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h4
-rw-r--r--Include/opcode.h9
2 files changed, 2 insertions, 11 deletions
diff --git a/Include/object.h b/Include/object.h
index 9dd100f933..03f4796be3 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -252,9 +252,9 @@ typedef struct {
binaryfunc sq_concat;
ssizeargfunc sq_repeat;
ssizeargfunc sq_item;
- ssizessizeargfunc sq_slice;
+ void *was_sq_slice;
ssizeobjargproc sq_ass_item;
- ssizessizeobjargproc sq_ass_slice;
+ void *was_sq_ass_slice;
objobjproc sq_contains;
binaryfunc sq_inplace_concat;
diff --git a/Include/opcode.h b/Include/opcode.h
index 1c6683d33e..f2abab3089 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -36,15 +36,6 @@ extern "C" {
#define INPLACE_FLOOR_DIVIDE 28
#define INPLACE_TRUE_DIVIDE 29
-#define SLICE 30
-/* Also uses 31-33 */
-
-#define STORE_SLICE 40
-/* Also uses 41-43 */
-
-#define DELETE_SLICE 50
-/* Also uses 51-53 */
-
#define INPLACE_ADD 55
#define INPLACE_SUBTRACT 56
#define INPLACE_MULTIPLY 57