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 veganaiZe
Recipients veganaiZe
Date 2020-10-11.17:59:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602439167.7.0.635101200661.issue42007@roundup.psfhosted.org>
In-reply-to
Content
I can't do something like this (regarding the `or`)...

    if (not position.x == 0 and velocity == -1) or
            (not position.x == 500 and velocity == 1)

Nor this...

    if (not position.x == 0 and velocity == -1) or (
            not position.x == 500 and velocity == 1)

I have to do something like this...

    if (not position.x == 0 and velocity == -1) \
           or (not position.x == 500 and velocity == 1)

I would like to be able to do it the first way.
History
Date User Action Args
2020-10-11 17:59:27veganaiZesetrecipients: + veganaiZe
2020-10-11 17:59:27veganaiZesetmessageid: <1602439167.7.0.635101200661.issue42007@roundup.psfhosted.org>
2020-10-11 17:59:27veganaiZelinkissue42007 messages
2020-10-11 17:59:27veganaiZecreate