Commits

anatoly techtonik committed a64f75c

Clarify some comments

Comments (0)

Files changed (1)

             #     inspectable, like len(stack) is an entrydepth,
             #     stack[-1] is the current frame
 
-        if event == 'call': # generated before any function call
+        if event == 'call': # generated before any function call (except built-ins)
             self.depth += 1
             funcname = frame.f_code.co_name
             filename = self._strip_cwd(frame.f_code.co_filename)
                 if frame.f_back:
                    filename = self._strip_cwd(frame.f_back.f_code.co_filename)
                 else:
-                   filename = ''  # top frame, no parent
+                   filename = ''  # top frame, no calling parent
             # skip paths mentioned in trace_filter
             if (funcname[0] is not '<' # not module import
                     and any( [filename.startswith(x) for x in self.filter] )):