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
Kirill Smelkov
cython
Commits
d737fed4
Commit
d737fed4
authored
Apr 25, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
who needs lambda anyway ...
parent
889ffe3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+5
-2
No files found.
Cython/Compiler/ExprNodes.py
View file @
d737fed4
...
...
@@ -2853,6 +2853,9 @@ class SizeofVarNode(SizeofNode):
#
#-------------------------------------------------------------------
def
_not_in
(
x
,
seq
):
return
x
not
in
seq
compile_time_binary_operators
=
{
'<'
:
operator
.
lt
,
'<='
:
operator
.
le
,
...
...
@@ -2875,8 +2878,8 @@ compile_time_binary_operators = {
'-'
:
operator
.
sub
,
#'/': operator.truediv,
'^'
:
operator
.
xor
,
'in'
:
lambda
x
,
y
:
x
in
y
,
'not_in'
:
lambda
x
,
y
:
x
not
in
y
,
'in'
:
operator
.
contains
,
'not_in'
:
_not_in
,
}
def
get_compile_time_binop
(
node
):
...
...
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