Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys containing "__a__" at the beginning will be ignored. #424

Closed
leididi opened this issue Oct 8, 2023 · 1 comment
Closed

Keys containing "__a__" at the beginning will be ignored. #424

leididi opened this issue Oct 8, 2023 · 1 comment

Comments

@leididi
Copy link

leididi commented Oct 8, 2023

Please checkout the F.A.Q page before creating a bug ticket to make sure it is not already addressed.

Describe the bug
Keys containing "__a__" at the beginning will be ignored.

To Reproduce

from deepdiff import DeepDiff

a = { "test": "test_upgrade", "__time__": 1696749349268, "__event_time__": 1695721649091, "__ingestion_time__": 1696749349264, "__topic__": "bbb", "__content__": "123445", "__env__": "prod", "__message_id__": "42213:3665:2-0" }

b = { "test": "test_upgrade", "__time__": 1696749354156, "__event_time__": 1695721649025, "__ingestion_time__": 1696749349264, "__topic__": "aaa", "__content__": "ddd", "__env__": "prod", "__message_id__": "42213:3665:2:0-0-0" }
print(DeepDiff(a,b))

Expected behavior
{}

OS, DeepDiff version and Python version (please complete the following information):

  • OS: linux
  • Version Linux 2d023edea1d9 6.4.15-orbstack-00099-g032ce27c660e Difference from RFC 6902 #1 SMP Sun Sep 10 15:23:24 UTC 2023 x86_64 GNU/Linux
  • Python Version 3.8.10
  • DeepDiff Version 6.6.0

Additional context
The following parameters are invalid:
report_repetition=True, ignore_order=True, ignore_string_type_changes=True,ignore_type_in_groups=[(str, bytes)]

@leididi leididi changed the title Keys containing "a" at the beginning will be ignored. Keys containing "__a__" at the beginning will be ignored. Oct 8, 2023
@leididi
Copy link
Author

leididi commented Oct 8, 2023

ignore_private_variables=False

@leididi leididi closed this as completed Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant