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
Boxiang Sun
cython
Commits
029da642
Commit
029da642
authored
Oct 21, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 430: make 'locals().items()' work
parent
9abadbd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+4
-0
tests/bugs.txt
tests/bugs.txt
+0
-1
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
029da642
...
...
@@ -957,6 +957,7 @@ class TransformBuiltinMethods(EnvTransform):
return
node
def
visit_AttributeNode
(
self
,
node
):
self
.
visitchildren
(
node
)
return
self
.
visit_cython_attribute
(
node
)
def
visit_NameNode
(
self
,
node
):
...
...
@@ -983,6 +984,9 @@ class TransformBuiltinMethods(EnvTransform):
if
entry
:
# not the builtin 'locals'
return
node
if
len
(
node
.
args
)
>
0
:
error
(
self
.
pos
,
"Builtin 'locals()' called with wrong number of args, expected 0, got %d"
%
len
(
node
.
args
))
return
node
pos
=
node
.
pos
items
=
[
ExprNodes
.
DictItemNode
(
pos
,
key
=
ExprNodes
.
StringNode
(
pos
,
value
=
var
),
...
...
tests/bugs.txt
View file @
029da642
...
...
@@ -8,4 +8,3 @@ unsignedbehaviour_T184
bad_c_struct_T252
missing_baseclass_in_predecl_T262
extended_unpacking_T409
locals_expressions_T430
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