class documentation
class PythonPrinter: (source)
Undocumented
Method | __init__ |
Undocumented |
Method | close |
close this printer, flushing any remaining lines. |
Method | start |
Undocumented |
Method | write |
Undocumented |
Method | write |
print a line or lines of python which already contain indentation. |
Method | writeline |
print a line of python, indenting it according to the current indent level. |
Method | writelines |
print a series of lines of python. |
Instance Variable | backslashed |
Undocumented |
Instance Variable | in |
Undocumented |
Instance Variable | indent |
Undocumented |
Instance Variable | indent |
Undocumented |
Instance Variable | indentstring |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | source |
Undocumented |
Instance Variable | stream |
Undocumented |
Instance Variable | triplequoted |
Undocumented |
Method | _flush |
Undocumented |
Method | _in |
return true if the given line is part of a multi-line block, via backslash or triple-quote. |
Method | _indent |
indent the given line according to the current indent level. |
Method | _is |
return true if the given line is an 'unindentor', relative to the last 'indent' event received. |
Method | _reset |
reset the flags which would indicate we are in a backslashed or triple-quoted section. |
Method | _update |
Undocumented |
Instance Variable | _re |
Undocumented |
Instance Variable | _re |
Undocumented |
Instance Variable | _re |
Undocumented |
Instance Variable | _re |
Undocumented |
Instance Variable | _re |
Undocumented |
Instance Variable | _re |
Undocumented |
print a line or lines of python which already contain indentation. The indentation of the total block of lines will be adjusted to that of the current indent level.
print a line of python, indenting it according to the current indent level. this also adjusts the indentation counter according to the content of the line.
indent the given line according to the current indent level. stripspace is a string of space that will be truncated from the start of the line before indenting.