a_list.extend(b_list) changes a_list in place. a_list = a_list + b_list creates a new list and then saves it under the name a_list . Note that a_list += b_list should be exactly the same as the extend version.
Using extend or += probably a little faster, since it does not need to create a new object, but if there is another link to a_list around, this value will also be changed (which may or may not be desirable).
source share