(node)
return True
Check that something isn't an attribute or function name etc.
Check that something isn't an attribute or function name etc.
Check that something isn t an attribute or function name etc .
def is_probably_builtin(node):
    """
    Check that something isn't an attribute or function name etc.
    """
    prev = node.prev_sibling
    if prev is not None and prev.type == token.DOT:
        # Attribute lookup.
        return False
    parent = node.parent
    if parent.type in (syms.funcdef, syms.classdef):
        return False
    if parent.type == syms.expr_stmt and parent.children[0] is node:
        # Assignment.
        return False
    if parent.type == syms.parameters or \
            (parent.type == syms.typedargslist and (
            (prev is not None and prev.type == token.COMMA) or
            parent.children[0] is node
            )):
        # The name of an argument.
        return False
    return True
def is_probably_builtin ( node ) : prev = node . prev_sibling if prev is not None and prev . type == token . DOT : # Attribute lookup. return False parent = node . parent if parent . type in ( syms . funcdef , syms . classdef ) : return False if parent . type == syms . expr_stmt and parent . children [ 0 ] is node : # Assignment. return False if parent . type == syms . parameters or ( parent . type == syms . typedargslist and ( ( prev is not None and prev . type == token . COMMA ) or parent . children [ 0 ] is node ) ) : # The name of an argument. return False return True