deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

failed hashing dictionaries which contains 'unprocessed' as a key or a value

Open nadavu opened this issue 3 years ago • 1 comments

Describe the bug failed hashing dictionaries which contains 'unprocessed' as a key or a value. DeepHash which gets a dictionary contains the word 'unprocessed' failed with {ValueError}not enough values to unpack and prints to STDOUT: Can not produce a hash for root[0].Not counting this object. not enough values to unpack (expected 2, got 0)

To Reproduce run DeepDiff([{'value', 'unprocessed'}], [{'value', 'unprocessed'}])

Expected behavior handle "unprocessed"

  • OS: mac monterey
  • Version 12.4
  • Python 3.8.9

nadavu avatar Jul 04 '22 16:07 nadavu

This is because unprocessed is a special key in Deepdiff. Perhaps we should use a different word that is less likely to show up in data.

Sep Dehpour

On Jul 4, 2022, at 9:03 AM, nadavu @.***> wrote:

 Describe the bug failed hashing dictionaries which contains 'unprocessed' as a key or a value. DeepHash which gets a dictionary contains the word 'unprocessed' failed with {ValueError}not enough values to unpack and prints to STDOUT: Can not produce a hash for root[0].Not counting this object. not enough values to unpack (expected 2, got 0)

To Reproduce run DeepDiff([{'value', 'unprocessed'}], [{'value', 'unprocessed'}])

Expected behavior handle "unprocessed"

OS: mac monterey Version 12.4 Python 3.8.9 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

seperman avatar Jul 04 '22 16:07 seperman