| 687 | } |
| 688 | |
| 689 | bool cbm_python_is_builtin_member(const char *name) { |
| 690 | if (!name || !name[0]) { |
| 691 | return false; |
| 692 | } |
| 693 | return bsearch(name, PYTHON_BUILTIN_MEMBERS, |
| 694 | sizeof(PYTHON_BUILTIN_MEMBERS) / sizeof(PYTHON_BUILTIN_MEMBERS[0]), |
| 695 | sizeof(PYTHON_BUILTIN_MEMBERS[0]), python_builtin_member_cmp) != NULL; |
| 696 | } |
| 697 | |
| 698 | /* The member guard's one exemption. A Python member call whose receiver could |
| 699 | * not be typed still carries real evidence when three facts line up: the callee |
no outgoing calls
no test coverage detected