Improve tuple unpacking behavior
- Use the right unpacking protocol (ie don't check __len__, just try to iterate) - Handle unpacking exceptions appropriately - Expand the targets of assigns correctly (think: f().x = 1) -- this was not just for tuples but came up here first; this also was broken: [0 for i in xrange(5)][0] = 1 (silly but legal)
Showing
This diff is collapsed.
Please register or sign in to comment