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 pxeger
Recipients lys.nikolaou, pablogsal, pxeger
Date 2022-02-21.17:50:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645465803.96.0.142928933167.issue46820@roundup.psfhosted.org>
In-reply-to
Content
The following code gives a SyntaxError in 3.10, but used to work fine before (I have tested it in 2.7, 3.8, 3.9):

    1not in [2, 3]

It seems to be only the `not in` syntax which is affected; all other keywords still work correctly:

    1in [2, 3]
    1or 2
    1and 2
    1if 1else 1
    1is 1

I know this syntax is deprecated in 3.10 (bpo43833), but it still needs to work for now, so that old code written like this can keep working.
History
Date User Action Args
2022-02-21 17:50:04pxegersetrecipients: + pxeger, lys.nikolaou, pablogsal
2022-02-21 17:50:03pxegersetmessageid: <1645465803.96.0.142928933167.issue46820@roundup.psfhosted.org>
2022-02-21 17:50:03pxegerlinkissue46820 messages
2022-02-21 17:50:03pxegercreate