Serhiy Storchaka <[email protected]> added the comment:
As you worked much with ast.dump(), what multi-line formatting do you prefer,
the current
Module(
body=[
If(
test=Name(id='x', ctx=Load()),
body=[
Expr(
value=Constant(value=Ellipsis))],
orelse=[
If(
test=Name(id='y', ctx=Load()),
body=[
Expr(
value=Constant(value=Ellipsis))],
orelse=[
Expr(
value=Constant(value=Ellipsis))])])],
type_ignores=[])
or with closing brackets on separate lines?
Module(
body=[
If(
test=Name(id='x', ctx=Load()),
body=[
Expr(
value=Constant(value=Ellipsis)
)
],
orelse=[
If(
test=Name(id='y', ctx=Load()),
body=[
Expr(
value=Constant(value=Ellipsis)
)
],
orelse=[
Expr(
value=Constant(value=Ellipsis)
)
]
)
]
)
],
type_ignores=[]
)
The latter make contain long stairs of closing brackets.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39199>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com