Formatter for pretty printing: Module fmt¶
-
class
pyrser.fmt.indentable[source]¶ Bases:
objectbase of all fmt objects
-
char_indent= ' '¶
-
num_indent= 4¶
-
lsdata¶
-
-
pyrser.fmt.catend(dst: str, src: str, indent) → str[source]¶ cat two strings but handle for tabulation
-
pyrser.fmt.list_to_str(lst: list, content: str, indent: int= 1)[source]¶ recurs into list for string computing
-
class
pyrser.fmt.block(beginby: str, endby: str, lsdata: list)[source]¶ Bases:
pyrser.fmt.indentablefor {}, (), []
-
class
pyrser.fmt.sep(ch: str, lsdata: list)[source]¶ Bases:
pyrser.fmt.indentablefor all list seperated by a char
-
class
pyrser.fmt.end(ch: str, lsdata: list)[source]¶ Bases:
pyrser.fmt.indentablefor all list that end by a char