MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _is_dunder

Function _is_dunder

tools/python-3.11.9-amd64/Lib/enum.py:48–57  ·  view source on GitHub ↗

Returns True if a __dunder__ name, False otherwise.

(name)

Source from the content-addressed store, hash-verified

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

Callers 3

__setitem__Method · 0.70
__getattr__Method · 0.70
convert_classFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected