pyre.tracking

Package Contents

class pyre.tracking.chain(this, next)

A locator that ties together two others in order to express that something in {next} caused {this} to be recorded

__slots__ = ['this', 'next']
__str__(self)
class pyre.tracking.command(arg)

A locator that records the position of a command line argument

source = from the command line argument {!r}
__slots__ = ['arg']
__str__(self)
class pyre.tracking.file(source, line=None, column=None)

A locator that records a position within a file

__slots__ = ['source', 'line', 'column']
__str__(self)
class pyre.tracking.region(start, end)

A locator that records information about a region of a file

__slots__ = ['start', 'end']
__str__(self)
class pyre.tracking.lookup(description, key)

A locator that records a simple named source with no further details

__slots__ = ['key', 'description']
__str__(self)
class pyre.tracking.script(source, line=None, function=None)

A locator that records information relevant to python scripts. This information is typically extracted from stack traces so it contains whatever can be harvested by introspection

__slots__ = ['source', 'line', 'function']
__str__(self)
class pyre.tracking.simple(source)

A locator that records a simple named source with no further details

__slots__ = ['source']
__str__(self)
class pyre.tracking.tracker(**kwds)

Record the values a key has taken

getHistory(self, key)

Retrieve the historical record associated with a particular {key}

track(self, key, node)

Add {value} to the history of {key}

pyre.tracking.callerStackDepth = 2
pyre.tracking.unknown()
pyre.tracking.here(level=0)

Build a locator that records the caller’s location

The parameter {level} specifies the level above the caller that is to be used as the originating location. The default, {level}=0, indicates to use the caller’s location; setting {level} to 1 will use the caller’s caller’s location, and so on.