MCPcopy Index your code
hub / github.com/python/cpython / _is_sunder

Function _is_sunder

Lib/enum.py:58–67  ·  view source on GitHub ↗

Returns True if a _sunder_ name, False otherwise.

(name)

Source from the content-addressed store, hash-verified

56 )
57
58def _is_sunder(name):
59 """
60 Returns True if a _sunder_ name, False otherwise.
61 """
62 return (
63 len(name) > 2 and
64 name[0] == name[-1] == '_' and
65 name[1] != '_' and
66 name[-2] != '_'
67 )
68
69def _is_internal_class(cls_name, obj):
70 # do not use `re` as `re` imports `enum`

Callers 2

__setitem__Method · 0.85
convert_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…