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