> > > How does Python decide that sequence elements are immutable? > > > > Huh? It doesn't. If they were mutable, had you expected something > > else? > > Actually, yes. I had expcected that Python would know it didn't need > to "put the thing back in", since the thing gets modified in > place. Knowing that it doesn't work that way clears up a lot. Still, I don't understand which other outcome than [1, 6, 5] you had expected. --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4