I am perplexed as to why these seemingly illegal assignment runs fine in Python 3.
[]=range(0)
After discovering this completely by accident I started messing around and found that
[]=range(1,1)
also works, but all of the below raise an exception just as I would expect.
[]=range(1)
[]=range(1,2)
[0]=range(0)
[0,1]=range(2)
What's going on under the hood here?