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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
90aa9a32
Commit
90aa9a32
authored
Oct 06, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix membership test on const cyplist and cypset
parent
f4ee2a22
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Cython/Includes/libcythonplus/list.pxd
Cython/Includes/libcythonplus/list.pxd
+1
-1
Cython/Includes/libcythonplus/set.pxd
Cython/Includes/libcythonplus/set.pxd
+1
-1
No files found.
Cython/Includes/libcythonplus/list.pxd
View file @
90aa9a32
...
@@ -134,7 +134,7 @@ cdef cypclass cyplist[V]:
...
@@ -134,7 +134,7 @@ cdef cypclass cyplist[V]:
size_type
__len__
(
const
self
):
size_type
__len__
(
const
self
):
return
self
.
_elements
.
size
()
return
self
.
_elements
.
size
()
bint
__contains__
(
self
,
const
value_type
value
):
bint
__contains__
(
const
self
,
const
value_type
value
):
for
v
in
self
.
_elements
:
for
v
in
self
.
_elements
:
if
value
is
v
:
if
value
is
v
:
return
1
return
1
...
...
Cython/Includes/libcythonplus/set.pxd
View file @
90aa9a32
...
@@ -82,7 +82,7 @@ cdef cypclass cypset[V]:
...
@@ -82,7 +82,7 @@ cdef cypclass cypset[V]:
size_type
__len__
(
const
self
):
size_type
__len__
(
const
self
):
return
self
.
_elements
.
size
()
return
self
.
_elements
.
size
()
bint
__contains__
(
self
,
const
value_type
value
):
bint
__contains__
(
const
self
,
const
value_type
value
):
return
self
.
_elements
.
count
(
value
)
return
self
.
_elements
.
count
(
value
)
bint
isdisjoint
(
const
self
,
const
cypset
[
V
]
other
):
bint
isdisjoint
(
const
self
,
const
cypset
[
V
]
other
):
...
...
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