class documentation

class NumberLines(object):

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 split.

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):

Undocumented

def __iter__(self):

Undocumented

fmt_str =

Undocumented

startline =

Undocumented

tokens =

Undocumented