News for hackers. Stuff that matters.
Re:Anti-Patterns in Python Programming by Paradigma11 on Thursday July 10, 2014 @01:50AM (#8013819)
Why? You would just get a new list back.
Re:Anti-Patterns in Python Programming by msellout on Thursday July 10, 2014 @02:46AM (#8013948)
I can see why you might think so, but remember the Zen of Python is to have only one obvious way to do something.

    >>> [1,2,3] + [4,5]
    [1, 2, 3, 4, 5]
Thus appending should do something different than addition.

    >>> x = [1,2,3]
    >>> x.append([4,5])
    >>> x
    [1, 2, 3, [4, 5]]