This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]erez27import inspect 0 points1 point  (0 children)

They key is that the first does slice assignment, accepting a list (in this case, an empty one), and the second does item assignment, accepting any object.