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

Function _is_dunder

Lib/enum.py:47–56  ·  view source on GitHub ↗

Returns True if a __dunder__ name, False otherwise.

(name)

Source from the content-addressed store, hash-verified

45 )
46
47def _is_dunder(name):
48 """
49 Returns True if a __dunder__ name, False otherwise.
50 """
51 return (
52 len(name) > 4 and
53 name[:2] == name[-2:] == '__' and
54 name[2] != '_' and
55 name[-3] != '_'
56 )
57
58def _is_sunder(name):
59 """

Callers 2

__setitem__Method · 0.70
convert_classFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…