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
c8ccb5b1
Commit
c8ccb5b1
authored
Nov 26, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile modules Cython.Compiler.Nodes and Cython.Compiler.ExprNodes
parent
adfe0451
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+14
-9
setup.py
setup.py
+3
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
c8ccb5b1
...
@@ -2,9 +2,19 @@
...
@@ -2,9 +2,19 @@
# Pyrex - Parse tree nodes for expressions
# Pyrex - Parse tree nodes for expressions
#
#
import
cython
from
cython
import
set
cython
.
declare
(
error
=
object
,
warning
=
object
,
warn_once
=
object
,
InternalError
=
object
,
CompileError
=
object
,
UtilityCode
=
object
,
StringEncoding
=
object
,
operator
=
object
,
Naming
=
object
,
Nodes
=
object
,
PyrexTypes
=
object
,
py_object_type
=
object
,
list_type
=
object
,
tuple_type
=
object
,
set_type
=
object
,
dict_type
=
object
,
\
unicode_type
=
object
,
str_type
=
object
,
bytes_type
=
object
,
type_type
=
object
,
Builtin
=
object
,
Symtab
=
object
,
Utils
=
object
,
find_coercion_error
=
object
,
debug_disposal_code
=
object
,
debug_temp_alloc
=
object
,
debug_coercion
=
object
)
import
operator
import
operator
from
Errors
import
error
,
warning
,
warn_once
,
InternalError
from
Errors
import
error
,
warning
,
warn_once
,
InternalError
,
CompileError
from
Errors
import
hold_errors
,
release_errors
,
held_errors
,
report_error
from
Errors
import
hold_errors
,
release_errors
,
held_errors
,
report_error
from
Code
import
UtilityCode
from
Code
import
UtilityCode
import
StringEncoding
import
StringEncoding
...
@@ -21,17 +31,11 @@ import Symtab
...
@@ -21,17 +31,11 @@ import Symtab
import
Options
import
Options
from
Cython
import
Utils
from
Cython
import
Utils
from
Annotate
import
AnnotationItem
from
Annotate
import
AnnotationItem
from
Cython
import
Utils
from
Cython.Debugging
import
print_call_chain
from
Cython.Debugging
import
print_call_chain
from
DebugFlags
import
debug_disposal_code
,
debug_temp_alloc
,
\
from
DebugFlags
import
debug_disposal_code
,
debug_temp_alloc
,
\
debug_coercion
debug_coercion
try
:
set
except
NameError
:
from
sets
import
Set
as
set
class
NotConstant
(
object
):
class
NotConstant
(
object
):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
"<NOT CONSTANT>"
return
"<NOT CONSTANT>"
...
@@ -202,8 +206,9 @@ class ExprNode(Node):
...
@@ -202,8 +206,9 @@ class ExprNode(Node):
_get_child_attrs
=
operator
.
attrgetter
(
'subexprs'
)
_get_child_attrs
=
operator
.
attrgetter
(
'subexprs'
)
except
AttributeError
:
except
AttributeError
:
# Python 2.3
# Python 2.3
def
_get_child_attrs
(
self
):
def
_
_
get_child_attrs
(
self
):
return
self
.
subexprs
return
self
.
subexprs
_get_child_attrs
=
__get_child_attrs
child_attrs
=
property
(
fget
=
_get_child_attrs
)
child_attrs
=
property
(
fget
=
_get_child_attrs
)
def
not_implemented
(
self
,
method_name
):
def
not_implemented
(
self
,
method_name
):
...
@@ -3153,7 +3158,7 @@ class GeneralCallNode(CallNode):
...
@@ -3153,7 +3158,7 @@ class GeneralCallNode(CallNode):
def
explicit_args_kwds
(
self
):
def
explicit_args_kwds
(
self
):
if
self
.
starstar_arg
or
not
isinstance
(
self
.
positional_args
,
TupleNode
):
if
self
.
starstar_arg
or
not
isinstance
(
self
.
positional_args
,
TupleNode
):
raise
PostPars
eError
(
self
.
pos
,
raise
Compil
eError
(
self
.
pos
,
'Compile-time keyword arguments must be explicit.'
)
'Compile-time keyword arguments must be explicit.'
)
return
self
.
positional_args
.
args
,
self
.
keyword_args
return
self
.
positional_args
.
args
,
self
.
keyword_args
...
...
setup.py
View file @
c8ccb5b1
...
@@ -92,8 +92,10 @@ def compile_cython_modules(profile=False):
...
@@ -92,8 +92,10 @@ def compile_cython_modules(profile=False):
"Cython.Compiler.Parsing"
,
"Cython.Compiler.Parsing"
,
"Cython.Compiler.Visitor"
,
"Cython.Compiler.Visitor"
,
"Cython.Compiler.ParseTreeTransforms"
,
"Cython.Compiler.ParseTreeTransforms"
,
"Cython.Compiler.Optimize"
,
"Cython.Compiler.Nodes"
,
"Cython.Compiler.ExprNodes"
,
"Cython.Compiler.ModuleNode"
,
"Cython.Compiler.ModuleNode"
,
"Cython.Compiler.Optimize"
,
"Cython.Runtime.refnanny"
]
"Cython.Runtime.refnanny"
]
extensions
=
[]
extensions
=
[]
...
...
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