codebar / tutorials

🗒 codebar's tutorials
http://tutorials.codebar.io/
258 stars 241 forks source link

You cannot append to a list with []= in Python. #358

Closed taw closed 7 years ago

taw commented 7 years ago

It would work in Ruby, but it just doesn't work in Python 2 or 3. Even []= immediately after end of list raises exception.

KimberleyCook commented 7 years ago

Thanks again @taw 😄 hugely appreciated.