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

Function sorted_attributes_key

_pydevd_bundle/pydevd_resolver.py:45–58  ·  view source on GitHub ↗
(attr_name)

Source from the content-addressed store, hash-verified

43
44
45def sorted_attributes_key(attr_name):
46 if attr_name.startswith("__"):
47 if attr_name.endswith("__"):
48 # __ double under before and after __
49 return (3, attr_name)
50 else:
51 # __ double under before
52 return (2, attr_name)
53 elif attr_name.startswith("_"):
54 # _ single under
55 return (1, attr_name)
56 else:
57 # Regular (Before anything)
58 return (0, attr_name)
59
60
61# =======================================================================================================================

Calls

no outgoing calls

Tested by

no test coverage detected