Take a look at my Python session:
>>> {} .keys (). insert (0, "") == None
True
and
>>> k = {} .keys ()
>>> k
[]
>>> k.insert (0, "")
>>> k
['']
Why??
PS . Thanks for the help! Python has a very strange design - it doesn't support chaining:
This is the root of my problem ...
source
to share