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 aroberge
Recipients aroberge, lys.nikolaou, pablogsal
Date 2021-08-05.10:45:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628160307.55.0.448348784951.issue44838@roundup.psfhosted.org>
In-reply-to
Content
Given the following code containing no if expression (only if statements):

if True:
    print('hello'

if 2:
    print(123))

The following traceback is generated in Python 3.10.0RC1

  File "...\example.py", line 2
    print('hello'
          ^^^^^^^
SyntaxError: expected 'else' after 'if' expression
History
Date User Action Args
2021-08-05 10:45:07arobergesetrecipients: + aroberge, lys.nikolaou, pablogsal
2021-08-05 10:45:07arobergesetmessageid: <1628160307.55.0.448348784951.issue44838@roundup.psfhosted.org>
2021-08-05 10:45:07arobergelinkissue44838 messages
2021-08-05 10:45:05arobergecreate