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
ff81f222
Commit
ff81f222
authored
Jun 18, 2008
by
Dag Sverre Seljebotn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos, using Naming for temp prefixes
parent
ffc32b04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Cython/Compiler/Naming.py
Cython/Compiler/Naming.py
+1
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+4
-2
Cython/Compiler/Visitor.py
Cython/Compiler/Visitor.py
+3
-2
No files found.
Cython/Compiler/Naming.py
View file @
ff81f222
...
...
@@ -8,7 +8,7 @@
pyrex_prefix
=
"__pyx_"
temp_prefix
=
"__pyxtmp
_"
temp_prefix
=
u"__cyt
_"
builtin_prefix
=
pyrex_prefix
+
"builtin_"
arg_prefix
=
pyrex_prefix
+
"arg_"
...
...
Cython/Compiler/Nodes.py
View file @
ff81f222
...
...
@@ -3330,17 +3330,19 @@ class ExceptClauseNode(Node):
# target ExprNode or None
# body StatNode
# excinfo_target NameNode or None optional target for exception info
# excinfo_target NameNode or None used internally
# match_flag string result of exception match
# exc_value ExcValueNode used internally
# function_name string qualified name of enclosing function
# exc_vars (string * 3) local exception variables
# excinfo_target is never set by the parser, but can be set by a transform
# in order to extract more extensive information about the exception as a
# sys.exc_info()-style tuple into a target variable
child_attrs
=
[
"pattern"
,
"target"
,
"body"
,
"exc_value"
,
"excinfo_target"
]
exc_value
=
None
excinfo_target
=
None
excinfo_assignment
=
None
def
analyse_declarations
(
self
,
env
):
if
self
.
target
:
...
...
Cython/Compiler/Visitor.py
View file @
ff81f222
#
# Tree visitor and transform framework
#
import
inspect
import
Nodes
import
ExprNodes
import
inspect
import
Naming
from
Cython.Utils
import
EncodedString
class
BasicVisitor
(
object
):
...
...
@@ -171,7 +172,7 @@ tmpnamectr = 0
def
temp_name_handle
(
description
):
global
tmpnamectr
tmpnamectr
+=
1
return
EncodedString
(
u"__cyt_
%d_%s"
%
(
tmpnamectr
,
description
))
return
EncodedString
(
Naming
.
temp_prefix
+
u"
%d_%s"
%
(
tmpnamectr
,
description
))
def
get_temp_name_handle_desc
(
handle
):
if
not
handle
.
startswith
(
u"__cyt_"
):
...
...
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