File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,12 @@ Documentation
225
225
226
226
- Issue #14034: added the argparse tutorial.
227
227
228
+ Tools/Demos
229
+ -----------
230
+
231
+ - Issue #14965: Fix missing support for starred assignments in
232
+ Tools/parser/unparse.py.
233
+
228
234
229
235
What's New in Python 3.2.3 release candidate 2?
230
236
===============================================
Original file line number Diff line number Diff line change @@ -209,6 +209,13 @@ def test_elifs(self):
209
209
def test_try_except_finally (self ):
210
210
self .check_roundtrip (try_except_finally )
211
211
212
+ def test_starred_assignment (self ):
213
+ self .check_roundtrip ("a, *b, c = seq" )
214
+ self .check_roundtrip ("a, (*b, c) = seq" )
215
+ self .check_roundtrip ("a, *b[0], c = seq" )
216
+ self .check_roundtrip ("a, *(b, c) = seq" )
217
+
218
+
212
219
class DirectoryTestCase (ASTTestCase ):
213
220
"""Test roundtrip behaviour on all files in Lib and Lib/test."""
214
221
Original file line number Diff line number Diff line change @@ -472,6 +472,10 @@ def _Subscript(self, t):
472
472
self .dispatch (t .slice )
473
473
self .write ("]" )
474
474
475
+ def _Starred (self , t ):
476
+ self .write ("*" )
477
+ self .dispatch (t .value )
478
+
475
479
# slice
476
480
def _Ellipsis (self , t ):
477
481
self .write ("..." )
You can’t perform that action at this time.
0 commit comments