diff --git a/deepdiff/diff.py b/deepdiff/diff.py
old mode 100644
new mode 100755
index 073dccd..29017f6
--- a/deepdiff/diff.py
+++ b/deepdiff/diff.py
@@ -743,7 +743,7 @@ class DeepDiff(ResultDict):
     @staticmethod
     def __dict_from_slots(object):
         def unmangle(attribute):
-            if attribute.startswith('__'):
+            if attribute.startswith('__') and attribute != '__weakref__':
                 return '_{type}{attribute}'.format(
                     type=type(object).__name__,
                     attribute=attribute

object with __slots__ and __weakref__ is not compared properly
If I compare two objects with __slots__, which have __weakref__ in their slots (like ipaddress objects), deepdiff tries to unmangle the __weakref__.  It should probably just ignore it, or at least not try to unmangle the name.

```
In [1]: import deepdiff
In [2]: from ipaddress import ip_address
In [3]: deepdiff.DeepDiff(ip_address('1.2.3.4'), ip_address('5.6.7.8'))
Out[3]: {'unprocessed': ['root: 1.2.3.4 and 5.6.7.8']}
```

diff --git a/tests/test_diff_text.py b/tests/test_diff_text.py
old mode 100644
new mode 100755
index eb84faa..5b410e9
--- a/tests/test_diff_text.py
+++ b/tests/test_diff_text.py
@@ -836,6 +836,26 @@ class DeepDiffTextTestCase(unittest.TestCase):
         diff = DeepDiff(t1, t2)
         self.assertEqual(diff, {})
 
+    def test_custom_objects_with_weakref_in_slots(self):
+        class ClassA(object):
+            __slots__ = ['a', '__weakref__']
+
+            def __init__(self, a):
+                self.a = a
+
+        t1 = ClassA(1)
+        t2 = ClassA(2)
+        diff = DeepDiff(t1, t2)
+        result = {
+            'values_changed': {
+                'root.a': {
+                    'new_value': 2,
+                    'old_value': 1
+                }
+            },
+        }
+        self.assertEqual(diff, result)
+
     def get_custom_objects_add_and_remove(self):
         class ClassA(object):
             a = 1

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
-e git+https://github.com/seperman/deepdiff.git@6801d21ddb0645ed45dbcc8aa52ce892cd5f1084#egg=deepdiff
importlib-metadata==4.8.3
iniconfig==1.1.1
jsonpickle==2.2.0
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: deepdiff
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jsonpickle==2.2.0
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/deepdiff

tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_with_weakref_in_slots
tests/test_diff_text.py::DeepDiffTextTestCase::test_bad_attribute tests/test_diff_text.py::DeepDiffTextTestCase::test_base_level_dictionary_remapping tests/test_diff_text.py::DeepDiffTextTestCase::test_bytes tests/test_diff_text.py::DeepDiffTextTestCase::test_comprehensive_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_add_and_remove tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_add_and_remove_method tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_add_and_remove_method_verbose tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_add_and_remove_verbose tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_change tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_slot_change tests/test_diff_text.py::DeepDiffTextTestCase::test_custom_objects_with_single_protected_slot tests/test_diff_text.py::DeepDiffTextTestCase::test_decimal tests/test_diff_text.py::DeepDiffTextTestCase::test_decimal_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_dict_none_item_removed tests/test_diff_text.py::DeepDiffTextTestCase::test_dictionary_difference_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_dictionary_of_custom_objects tests/test_diff_text.py::DeepDiffTextTestCase::test_dictionary_of_list_of_dictionary_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_diff_when_hash_fails tests/test_diff_text.py::DeepDiffTextTestCase::test_diffs_dates tests/test_diff_text.py::DeepDiffTextTestCase::test_diffs_equal_strings_when_not_identical tests/test_diff_text.py::DeepDiffTextTestCase::test_diffs_timedeltas tests/test_diff_text.py::DeepDiffTextTestCase::test_frozenset tests/test_diff_text.py::DeepDiffTextTestCase::test_ignore_order_when_objects_similar tests/test_diff_text.py::DeepDiffTextTestCase::test_index_and_repeat_dictionary_remapping tests/test_diff_text.py::DeepDiffTextTestCase::test_int_to_unicode tests/test_diff_text.py::DeepDiffTextTestCase::test_int_to_unicode_string tests/test_diff_text.py::DeepDiffTextTestCase::test_item_added_and_removed tests/test_diff_text.py::DeepDiffTextTestCase::test_item_added_and_removed_verbose tests/test_diff_text.py::DeepDiffTextTestCase::test_item_type_change tests/test_diff_text.py::DeepDiffTextTestCase::test_item_type_change_less_verbose tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference2 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference3 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference4 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference_add tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_list_difference_ignore_order_report_repetition tests/test_diff_text.py::DeepDiffTextTestCase::test_list_none_item_removed tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_sets_difference_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_sets_difference_ignore_order_when_there_is_duplicate tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_sets_difference_ignore_order_when_there_is_duplicate_and_mix_of_hashable_unhashable tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_unhashable_difference_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_unhashable_difference_ignore_order2 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_unhashable_difference_ignore_order3 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_unhashable_difference_ignore_order4 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_unhashable_difference_ignore_order_report_repetition tests/test_diff_text.py::DeepDiffTextTestCase::test_list_of_unhashable_difference_ignore_order_report_repetition2 tests/test_diff_text.py::DeepDiffTextTestCase::test_list_that_contains_dictionary tests/test_diff_text.py::DeepDiffTextTestCase::test_loop tests/test_diff_text.py::DeepDiffTextTestCase::test_loop2 tests/test_diff_text.py::DeepDiffTextTestCase::test_loop3 tests/test_diff_text.py::DeepDiffTextTestCase::test_loop_in_lists tests/test_diff_text.py::DeepDiffTextTestCase::test_loop_in_lists2 tests/test_diff_text.py::DeepDiffTextTestCase::test_named_tuples tests/test_diff_text.py::DeepDiffTextTestCase::test_negative_significant_digits tests/test_diff_text.py::DeepDiffTextTestCase::test_nested_list_difference_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_nested_list_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_nested_list_ignore_order_report_repetition_wrong_currently tests/test_diff_text.py::DeepDiffTextTestCase::test_nested_list_with_dictionarry_difference_ignore_order tests/test_diff_text.py::DeepDiffTextTestCase::test_non_subscriptable_iterable tests/test_diff_text.py::DeepDiffTextTestCase::test_same_objects tests/test_diff_text.py::DeepDiffTextTestCase::test_set tests/test_diff_text.py::DeepDiffTextTestCase::test_set_ignore_order_report_repetition tests/test_diff_text.py::DeepDiffTextTestCase::test_set_of_custom_objects tests/test_diff_text.py::DeepDiffTextTestCase::test_set_of_none tests/test_diff_text.py::DeepDiffTextTestCase::test_set_strings tests/test_diff_text.py::DeepDiffTextTestCase::test_significant_digits_for_complex_imaginary_part tests/test_diff_text.py::DeepDiffTextTestCase::test_significant_digits_for_complex_real_part tests/test_diff_text.py::DeepDiffTextTestCase::test_significant_digits_for_decimals tests/test_diff_text.py::DeepDiffTextTestCase::test_significant_digits_for_list_of_floats tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_custom_object_path tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_dictionary_path tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_dictionary_path_with_custom_object tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_list_path tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_path1 tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_path2 tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_path2_reverse tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_path4 tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_regexp tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_str_type_in_dictionary tests/test_diff_text.py::DeepDiffTextTestCase::test_skip_type tests/test_diff_text.py::DeepDiffTextTestCase::test_string_difference tests/test_diff_text.py::DeepDiffTextTestCase::test_string_difference2 tests/test_diff_text.py::DeepDiffTextTestCase::test_tuple tests/test_diff_text.py::DeepDiffTextTestCase::test_type_change tests/test_diff_text.py::DeepDiffTextTestCase::test_unicode tests/test_diff_text.py::DeepDiffTextTestCase::test_unicode_string_type_changes tests/test_diff_text.py::DeepDiffTextTestCase::test_unicode_string_value_and_type_changes tests/test_diff_text.py::DeepDiffTextTestCase::test_unicode_string_value_changes tests/test_diff_text.py::DeepDiffTextTestCase::test_unknown_parameters tests/test_diff_text.py::DeepDiffTextTestCase::test_value_and_type_dictionary_remapping tests/test_diff_text.py::DeepDiffTextTestCase::test_value_change
deepdiff/diff.py
deepdiff/diff.py