This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients docs@python, pablogsal, serhiy.storchaka
Date 2020-03-09.22:29:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583792991.33.0.252153109606.issue39199@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-03-09 22:29:51serhiy.storchakasetrecipients: + serhiy.storchaka, docs@python, pablogsal
2020-03-09 22:29:51serhiy.storchakasetmessageid: <1583792991.33.0.252153109606.issue39199@roundup.psfhosted.org>
2020-03-09 22:29:51serhiy.storchakalinkissue39199 messages
2020-03-09 22:29:51serhiy.storchakacreate