def consts(self):
        """The constants referenced in this code object.
        """
        # We cannot use a set comprehension because consts do not need
        # to be hashable.
        consts = []
        append_const = consts.append
        for instr in self.instrs:
            if isinstance(instr, LOAD_CONST) and instr.arg not in consts:
                append_const(instr.arg)
        return tuple(consts)
def consts ( self ) : consts = [ ] append_const = consts . append for instr in self . instrs : if isinstance ( instr , LOAD_CONST ) and instr . arg not in consts : append_const ( instr . arg ) return tuple ( consts )
The constants referenced in this code object.