'Is this frame worth displaying in python backtraces?
Examples:
- waiting on the GIL
- garbage-collecting
- within a CFunction
If it is, return a descriptive string
For other frames, return False'

def is_other_python_frame(self):

    if self.is_waiting_for_gil():
        return 'Waiting    for    the    GIL'
    elif self.is_gc_collect():
        return 'Garbage-collecting'
    else:
        older = self.older()
        if (older and (older._gdbframe.name() == 'PyCFunction_Call')):
            try:
                func = older._gdbframe.read_var('func')
                return str(func)
            except RuntimeError:
                return 'PyCFunction    invocation    (unable    to    read    "func")'
    return False
