Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
That's not a bug. The in-place addition `+=` for lists is equivalent to the extend method. See the documentation: https://docs.python.org/3/library/stdtypes.html#mutable-sequence-types and the tutorial: https://docs.python.org/3/tutorial/datastructures.html ---------- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39964> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com