New submission from veganaiZe <[email protected]>:
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.
----------
components: Interpreter Core
messages: 378441
nosy: veganaiZe
priority: normal
severity: normal
status: open
title: Line continuation after Boolean operation
type: enhancement
versions: Python 3.7
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42007>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com