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
aea63286
Commit
aea63286
authored
Dec 15, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup relative to 0.12
parent
79eb3441
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
4 additions
and
14 deletions
+4
-14
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+3
-6
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+0
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+0
-1
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+0
-1
Cython/Compiler/Parsing.pxd
Cython/Compiler/Parsing.pxd
+0
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+0
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+0
-2
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+0
-1
Cython/Compiler/Tests/TestDecorators.py
Cython/Compiler/Tests/TestDecorators.py
+1
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
aea63286
...
...
@@ -4036,6 +4036,7 @@ class UnboundMethodNode(ExprNode):
code
.
error_goto_if_null
(
self
.
result
(),
self
.
pos
)))
code
.
put_gotref
(
self
.
py_result
())
class
PyCFunctionNode
(
AtomicExprNode
):
# Helper class used in the implementation of Python
# class definitions. Constructs a PyCFunction object
...
...
@@ -4127,7 +4128,6 @@ class UnopNode(ExprNode):
if
self
.
is_py_operation
():
self
.
gil_error
()
def
is_cpp_operation
(
self
):
return
self
.
operand
.
type
.
is_cpp_class
...
...
@@ -4166,7 +4166,6 @@ class UnopNode(ExprNode):
self
.
type_error
()
return
self
.
type
=
function
.
type
.
return_type
class
NotNode
(
ExprNode
):
...
...
@@ -4748,7 +4747,6 @@ class NumBinopNode(BinopNode):
def
py_operation_function
(
self
):
return
self
.
py_functions
[
self
.
operator
]
py_functions
=
{
"|"
:
"PyNumber_Or"
,
...
...
@@ -4764,7 +4762,7 @@ class NumBinopNode(BinopNode):
"%"
:
"PyNumber_Remainder"
,
"**"
:
"PyNumber_Power"
}
class
IntBinopNode
(
NumBinopNode
):
# Binary operation taking integer arguments.
...
...
@@ -5523,7 +5521,6 @@ class PrimaryCmpNode(ExprNode, CmpNode):
self
.
operand2
.
analyse_types
(
env
)
if
self
.
is_cpp_comparison
():
self
.
analyse_cpp_comparison
(
env
)
return
if
self
.
cascade
:
self
.
cascade
.
analyse_types
(
env
)
...
...
@@ -5636,7 +5633,7 @@ class PrimaryCmpNode(ExprNode, CmpNode):
self
.
operand2
.
annotate
(
code
)
if
self
.
cascade
:
self
.
cascade
.
annotate
(
code
)
class
CascadedCmpNode
(
Node
,
CmpNode
):
# A CascadedCmpNode is not a complete expression node. It
...
...
Cython/Compiler/Main.py
View file @
aea63286
...
...
@@ -76,7 +76,6 @@ class Context(object):
self
.
compiler_directives
=
compiler_directives
self
.
cpp
=
cpp
self
.
pxds
=
{}
# full name -> node tree
standard_include_path
=
os
.
path
.
abspath
(
...
...
Cython/Compiler/Nodes.py
View file @
aea63286
...
...
@@ -342,7 +342,6 @@ class StatListNode(Node):
def
analyse_expressions
(
self
,
env
):
#print "StatListNode.analyse_expressions" ###
entry
=
env
.
entries
.
get
(
"cpp_sum"
,
None
)
for
stat
in
self
.
stats
:
stat
.
analyse_expressions
(
env
)
...
...
Cython/Compiler/Options.py
View file @
aea63286
...
...
@@ -6,7 +6,6 @@ cache_builtins = 1 # Perform lookups on builtin names only once
embed_pos_in_docstring
=
0
gcc_branch_hints
=
1
cplus
=
0
pre_import
=
None
docstrings
=
True
...
...
Cython/Compiler/Parsing.pxd
View file @
aea63286
...
...
@@ -151,4 +151,3 @@ cpdef p_code(PyrexScanner s, level= *)
cpdef
p_compiler_directive_comments
(
PyrexScanner
s
)
cpdef
p_module
(
PyrexScanner
s
,
pxd
,
full_module_name
)
cpdef
p_cpp_class_definition
(
PyrexScanner
s
,
ctx
)
Cython/Compiler/Parsing.py
View file @
aea63286
...
...
@@ -1906,7 +1906,6 @@ def p_buffer_or_template(s, base_type_node):
keyword_args
=
keyword_dict
,
base_type_node
=
base_type_node
)
return
result
def
looking_at_name
(
s
):
...
...
Cython/Compiler/PyrexTypes.py
View file @
aea63286
...
...
@@ -1359,7 +1359,6 @@ class CNullPtrType(CPtrType):
is_null_ptr
=
1
class
CReferenceType
(
CType
):
is_reference
=
1
...
...
@@ -2271,7 +2270,6 @@ def best_match(args, functions, pos):
return
None
def
widest_numeric_type
(
type1
,
type2
):
# Given two numeric types, return the narrowest type
# encompassing both of them.
...
...
Cython/Compiler/Symtab.py
View file @
aea63286
...
...
@@ -1483,7 +1483,6 @@ class CClassScope(ClassScope):
entry
.
is_inherited
=
1
class
CppClassScope
(
Scope
):
# Namespace of a C++ class.
inherited_var_entries
=
[]
...
...
Cython/Compiler/Tests/TestDecorators.py
View file @
aea63286
...
...
@@ -12,6 +12,7 @@ class TestDecorator(TransformTest):
def decorated():
pass
"""
)
self
.
assertCode
(
u"""
def decorator(fun):
return fun
...
...
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