Look to my Python session:
>>> {}.keys().insert(0, "") == None
True
but:
>>> k = {}.keys()
>>> k
[]
>>> k.insert(0, "")
>>> k
['']
Why??
PS. Thanks for help! Python have very strange design – do not support chaining:
That is root of my problem…
list.insertreturnsNone; when you printkyou’re printing the new state of the list.