MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / compare_object_attrs_key

Function compare_object_attrs_key

_pydevd_bundle/pydevd_utils.py:79–87  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

77
78
79def compare_object_attrs_key(x):
80 if GENERATED_LEN_ATTR_NAME == x:
81 as_number = to_number(x)
82 if as_number is None:
83 as_number = 99999999
84 # len() should appear after other attributes in a list.
85 return (1, as_number)
86 else:
87 return (-1, to_string(x))
88
89
90def is_string(x):

Callers

nothing calls this directly

Calls 2

to_numberFunction · 0.85
to_stringFunction · 0.85

Tested by

no test coverage detected