npyscreen
npyscreen copied to clipboard
TypeError: can't pickle dict_items objects Python3.6.8 EXAMPLE-annotation.py
Python 3.6.8, npyscreen master. https://github.com/npcole/npyscreen/blob/822ee6aa5be9f04c800b168fef3c76548d26b7cf/npyscreen/wgmultiline.py#L332 calls copy.copy on dict_items which is not pickable. An exception: TypeError: can't pickle dict_items objects. The probable fix is to convert to list first?
self._last_value = copy.copy(list(self.values)) You should look at type returned by a call before to use it.