1. 8
  1. 3

    Its a little disingenuous to say that this behavior indicates that Python has “pointers” since most of the other accoutrements of pointers (pointer arithmetic, for instance) are still missing. Better to say Python has “references” and that sometimes they can trip you up.

    1. 2

      They also sometimes enable substantial memory savings, as long as you understand that you’re dealing with a reference or view onto underlying shared, mutable buffers. Not going to argue that it isn’t more often a footgun though.