Formatter for pretty printing: Module fmt
¶
-
class
pyrser.fmt.
indentable
[source]¶ Bases:
object
base 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.indentable
for {}, (), []
-
class
pyrser.fmt.
sep
(ch: str, lsdata: list)[source]¶ Bases:
pyrser.fmt.indentable
for all list seperated by a char
-
class
pyrser.fmt.
end
(ch: str, lsdata: list)[source]¶ Bases:
pyrser.fmt.indentable
for all list that end by a char