[New-bugs-announce] [issue42007] Line continuation after Boolean operation
veganaiZe
report at bugs.python.org
Sun Oct 11 13:59:27 EDT 2020
New submission from veganaiZe <veganaiZe-bot at yahoo.com>:
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 <report at bugs.python.org>
<https://bugs.python.org/issue42007>
_______________________________________
More information about the New-bugs-announce
mailing list