class documentation

class NumberLines(object): (source)

View In Hierarchy

Insert linenumber-tokens at the start of every code line.

Arguments

tokens -- iterable of (classes, value) tuples startline -- first line number endline -- last line number

Iterating over an instance yields the tokens with a (['ln'], '<the line number>') token added for every code line. Multi-line tokens are splitted.

Method __init__ Undocumented
Method __iter__ Undocumented
Instance Variable fmt​_str Undocumented
Instance Variable startline Undocumented
Instance Variable tokens Undocumented
def __init__(self, tokens, startline, endline): (source)

Undocumented

def __iter__(self): (source)

Undocumented

fmt_str = (source)

Undocumented

startline = (source)

Undocumented

tokens = (source)

Undocumented