method: test.TerminalSession.repr_locals

*Not documented*
    def repr_locals(self, entry): 

origin: test.TerminalSession

where:

function source:

def repr_locals(self, entry): 
    if self.config.option.showlocals:
        self.out.sep('- ', 'locals')
        for name, value in entry.frame.f_locals.items():
            if name == '__builtins__': 
                self.out.line("__builtins__ = <builtins>")
            else:
                # This formatting could all be handled by the _repr() function, which is 
                # only repr.Repr in disguise, so is very configurable.
                str_repr = py.__.code.safe_repr._repr(value)
                if len(str_repr) < 70 or not isinstance(value,
                                            (list, tuple, dict)):
                    self.out.line("%-10s = %s" %(name, str_repr))
                else:
                    self.out.line("%-10s =\\" % (name,))
                    py.std.pprint.pprint(value, stream=self.out)

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.0

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.1

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.2

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.3

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.4

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.5

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.6

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.7

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.8

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.9

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.10

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.11

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.12

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.13

called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py

traceback test.TerminalSession.repr_locals.14