npyscreen icon indicating copy to clipboard operation
npyscreen copied to clipboard

TypeError: can't pickle dict_items objects Python3.6.8 EXAMPLE-annotation.py

Open altmind opened this issue 5 years ago • 1 comments

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?

image

altmind avatar Dec 23 '19 22:12 altmind

self._last_value = copy.copy(list(self.values)) You should look at type returned by a call before to use it.

jerome-diver avatar Apr 19 '20 16:04 jerome-diver