News for hackers. Stuff that matters.
Re:A practical usage of ChainMap in Python by LyndsySimon on Monday September 24, 2018 @04:13PM (#18061011)

    chain_map.maps[0][key] = value
I wouldn't expect this to work because `0` is a valid key. It's not safe to assume that an integer lookup is an index.
Re:A practical usage of ChainMap in Python by orf on Monday September 24, 2018 @06:49PM (#18062159)
In his example maps is a list, no?