MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_sunder

Function _is_sunder

Lib/enum.py:57–66  ·  view source on GitHub ↗

Returns True if a _sunder_ name, False otherwise.

(name)

Source from the content-addressed store, hash-verified

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

Callers 2

__setitem__Method · 0.85
convert_classFunction · 0.85

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected