Why does
pickle.dumps({}.items())
fail with TypeError: can't pickle dict_items objects
in Python 3.5.2 but not in Python 2.7.12?
"Pickling" the dictionary with
pickle.dumps({})
works in both Python versions (and in Python 2.7.12 gives the same output as the command above).
dict_items
are buried deep in some nested structure. – Fossick