For example, in the enum howto (source) becomes
class Perm(IntFlag):
R = 4
W = 2
X = 1
RWX = 7
Perm.RWX
~Perm.RWX
Perm(7)
but when pasted into the prompt, gives
>>> class Perm(IntFlag):
... R = 4
... W = 2
... X = 1
... RWX = 7
... Perm.RWX
File "<stdin>", line 6
Perm.RWX
^^^^
SyntaxError: invalid syntax
There are a number of such examples that could use a newline with ... for ease of pasting.
#98993
Linked PRs
For example, in the enum howto (source) becomes
but when pasted into the prompt, gives
There are a number of such examples that could use a newline with
...for ease of pasting.#98993
Linked PRs