Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
ff7634cb
Commit
ff7634cb
authored
May 15, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for slot descriptor
parent
00aead89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/TypeSlots.py
Cython/Compiler/TypeSlots.py
+5
-5
No files found.
Cython/Compiler/TypeSlots.py
View file @
ff7634cb
...
...
@@ -213,8 +213,8 @@ class InternalMethodSlot(SlotDescriptor):
#
# slot_name string Member name of the slot in the type object
def
__init__
(
self
,
slot_name
,
py3k
=
True
):
SlotDescriptor
.
__init__
(
self
,
slot_name
,
py3k
=
py3k
)
def
__init__
(
self
,
slot_name
):
SlotDescriptor
.
__init__
(
self
,
slot_name
)
def
slot_code
(
self
,
scope
):
return
scope
.
mangle_internal
(
self
.
slot_name
)
...
...
@@ -272,8 +272,8 @@ class SyntheticSlot(InternalMethodSlot):
# alternative default value will be placed in the type
# slot.
def
__init__
(
self
,
slot_name
,
user_methods
,
default_value
,
py3k
=
True
):
InternalMethodSlot
.
__init__
(
self
,
slot_name
,
py3k
=
py3k
)
def
__init__
(
self
,
slot_name
,
user_methods
,
default_value
):
InternalMethodSlot
.
__init__
(
self
,
slot_name
)
self
.
user_methods
=
user_methods
self
.
default_value
=
default_value
...
...
@@ -579,7 +579,7 @@ PySequenceMethods = (
SyntheticSlot
(
"sq_item"
,
[
"__getitem__"
],
"0"
),
#EmptySlot("sq_item"), # mp_subscript used instead
MethodSlot
(
ssizessizeargfunc
,
"sq_slice"
,
"__getslice__"
),
EmptySlot
(
"sq_ass_item"
),
# mp_ass_subscript used instead
SyntheticSlot
(
"sq_ass_slice"
,
[
"__setslice__"
,
"__delslice__"
],
"0"
,
py3k
=
False
),
SyntheticSlot
(
"sq_ass_slice"
,
[
"__setslice__"
,
"__delslice__"
],
"0"
),
MethodSlot
(
cmpfunc
,
"sq_contains"
,
"__contains__"
),
EmptySlot
(
"sq_inplace_concat"
),
# nb_inplace_add used instead
EmptySlot
(
"sq_inplace_repeat"
),
# nb_inplace_multiply used instead
...
...
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