Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ead21f59
Commit
ead21f59
authored
Aug 28, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SF bug [ 788011 ] compiler.compileFile fails on csv.py
Bug fix candidate.
parent
4651f539
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Lib/compiler/symbols.py
Lib/compiler/symbols.py
+6
-1
No files found.
Lib/compiler/symbols.py
View file @
ead21f59
...
...
@@ -220,7 +220,12 @@ class SymbolVisitor:
self
.
visit
(
node
.
code
,
scope
)
self
.
handle_free_vars
(
scope
,
parent
)
def
visitLambda
(
self
,
node
,
parent
):
def
visitLambda
(
self
,
node
,
parent
,
assign
=
0
):
# Lambda is an expression, so it could appear in an expression
# context where assign is passed. The transformer should catch
# any code that has a lambda on the left-hand side.
assert
not
assign
for
n
in
node
.
defaults
:
self
.
visit
(
n
,
parent
)
scope
=
LambdaScope
(
self
.
module
,
self
.
klass
)
...
...
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