79743630

Date: 2025-08-22 16:27:27
Score: 1
Natty:
Report link

For me, it's not working for a element of a dict that type() reports as <class 'datetime.datetime'>, but it reports the both type and value as null in the difference output

I think error message about literal_eval_extended is referring to the helper.py module that is part of the deepdiff package (is "package" the right term?)

I found the source at:

https://github.com/seperman/deepdiff/blob/master/deepdiff/helper.py

But the code refers to an undefined global thingy called LITERAL_EVAL_PRE_PROCESS. I don't have the expertise to understand what this means. It's not obvious how to specify an option to fix this.

The weird thing is, the code at:

https://github.com/seperman/deepdiff/blob/b639fece73fe3ce4120261fdcff3cc7b826776e3/deepdiff/helper.py#L191

Does specify datetime.datetime as one of the things to include. Oh well.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Ben Slade