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 Mark.Shannon
Recipients Mark.Shannon, Mohamed_Atef, gregory.p.smith, gvanrossum, pablogsal, serhiy.storchaka, stestagg
Date 2021-01-12.14:37:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610462244.65.0.996212865169.issue42899@roundup.psfhosted.org>
In-reply-to
Content
The question still stands.

Is converting `if x: pass` to `pass` legal?

And, if it is not, is converting 

if a and b:
    body

to

if a:
    if b:
        body

a legal transformation?
(ignoring line numbers)


If the first transformation is not allowed but the second is, why?


B.T.W it is trivial to change the behavior, once we've decided what's correct.
History
Date User Action Args
2021-01-12 14:37:24Mark.Shannonsetrecipients: + Mark.Shannon, gvanrossum, gregory.p.smith, serhiy.storchaka, Mohamed_Atef, pablogsal, stestagg
2021-01-12 14:37:24Mark.Shannonsetmessageid: <1610462244.65.0.996212865169.issue42899@roundup.psfhosted.org>
2021-01-12 14:37:24Mark.Shannonlinkissue42899 messages
2021-01-12 14:37:24Mark.Shannoncreate