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
ae87629a
Commit
ae87629a
authored
Oct 24, 2007
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix builtins caching
parent
d6c61a46
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+1
-1
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-3
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+1
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
ae87629a
...
@@ -815,7 +815,7 @@ class NameNode(AtomicExprNode):
...
@@ -815,7 +815,7 @@ class NameNode(AtomicExprNode):
if
entry
.
is_pyglobal
or
entry
.
is_builtin
:
if
entry
.
is_pyglobal
or
entry
.
is_builtin
:
assert
type
.
is_pyobject
,
"Python global or builtin not a Python object"
assert
type
.
is_pyobject
,
"Python global or builtin not a Python object"
if
Options
.
intern_names
:
if
Options
.
intern_names
:
self
.
interned_cname
=
env
.
intern
(
self
.
entry
.
name
)
self
.
interned_cname
=
self
.
entry
.
interned_cname
=
env
.
intern
(
self
.
entry
.
name
)
def
check_identifier_kind
(
self
):
def
check_identifier_kind
(
self
):
#print "NameNode.check_identifier_kind:", self.entry.name ###
#print "NameNode.check_identifier_kind:", self.entry.name ###
...
...
Cython/Compiler/ModuleNode.py
View file @
ae87629a
...
@@ -1239,9 +1239,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
...
@@ -1239,9 +1239,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
"/*--- String init code ---*/"
)
code
.
putln
(
"/*--- String init code ---*/"
)
self
.
generate_string_init_code
(
env
,
code
)
self
.
generate_string_init_code
(
env
,
code
)
if
Options
.
cache_builtins
:
code
.
putln
(
"/*--- Builtin init code ---*/"
)
code
.
putln
(
"/*--- Builtin init code ---*/"
)
# TODO: FIXME !!
self
.
generate_builtin_init_code
(
env
,
code
)
#self.generate_builtin_init_code(env, code)
code
.
putln
(
"/*--- Global init code ---*/"
)
code
.
putln
(
"/*--- Global init code ---*/"
)
self
.
generate_global_init_code
(
env
,
code
)
self
.
generate_global_init_code
(
env
,
code
)
...
...
Cython/Compiler/Options.py
View file @
ae87629a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
#
#
intern_names
=
1
# Intern global variable and attribute names
intern_names
=
1
# Intern global variable and attribute names
cache_builtins
=
0
# Perform lookups on builtin names only once
cache_builtins
=
1
# Perform lookups on builtin names only once
embed_pos_in_docstring
=
0
embed_pos_in_docstring
=
0
gcc_branch_hints
=
1
gcc_branch_hints
=
1
...
...
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