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
85dbec6d
Commit
85dbec6d
authored
Nov 04, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1588287: fix invalid assertion for `1,2` in debug builds.
Will backport
parent
5310e507
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
Lib/test/test_grammar.py
Lib/test/test_grammar.py
+2
-0
Misc/NEWS
Misc/NEWS
+2
-0
Python/ast.c
Python/ast.c
+1
-0
No files found.
Lib/test/test_grammar.py
View file @
85dbec6d
...
@@ -747,6 +747,8 @@ hello world
...
@@ -747,6 +747,8 @@ hello world
x
=
`x`
x
=
`x`
x
=
`1 or 2 or 3`
x
=
`1 or 2 or 3`
self
.
assertEqual
(
`1,2`
,
'(1, 2)'
)
x
=
x
x
=
x
x
=
'x'
x
=
'x'
x
=
123
x
=
123
...
...
Misc/NEWS
View file @
85dbec6d
...
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1?
...
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1?
Core and builtins
Core and builtins
-----------------
-----------------
- Bug #1588287: fix invalid assertion for `1,2` in debug builds.
- Bug #1576657: when setting a KeyError for a tuple key, make sure that
- Bug #1576657: when setting a KeyError for a tuple key, make sure that
the tuple isn'
t
used
as
the
"exception arguments tuple"
.
the tuple isn'
t
used
as
the
"exception arguments tuple"
.
...
...
Python/ast.c
View file @
85dbec6d
...
@@ -532,6 +532,7 @@ seq_for_testlist(struct compiling *c, const node *n)
...
@@ -532,6 +532,7 @@ seq_for_testlist(struct compiling *c, const node *n)
||
TYPE
(
n
)
==
listmaker
||
TYPE
(
n
)
==
listmaker
||
TYPE
(
n
)
==
testlist_gexp
||
TYPE
(
n
)
==
testlist_gexp
||
TYPE
(
n
)
==
testlist_safe
||
TYPE
(
n
)
==
testlist_safe
||
TYPE
(
n
)
==
testlist1
);
);
seq
=
asdl_seq_new
((
NCH
(
n
)
+
1
)
/
2
,
c
->
c_arena
);
seq
=
asdl_seq_new
((
NCH
(
n
)
+
1
)
/
2
,
c
->
c_arena
);
...
...
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