Opened 4 years ago

Closed 4 years ago

Last modified 2 years ago

#664 closed defect (fixed)

Starred target bug

Reported by: vitja Owned by: somebody
Priority: major Milestone: 0.15
Component: Code Generation Keywords:
Cc:

Description

This code doesn't work as expected:

def assign():
   a, *b = 1,2,3,4,5
   return a, b

>>> import x
>>> x.assign()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "x.pyx", line 6, in x.assign (x.c:445)
   a, *b = 1,2,3,4,5
TypeError: Expected list, got int

Change History (3)

comment:2 Changed 4 years ago by robertwb

  • Milestone changed from wishlist to 0.14.2
  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 2 years ago by scoder

  • Milestone changed from 0.14.2 to 0.15
Note: See TracTickets for help on using tickets.