On 2022-11-14 00:55, Greg Ewing wrote:
On 14/11/22 1:31 pm, Jon Ribbens wrote:
On 2022-11-13, DFS <nos...@dfs.com> wrote:
But why is it allowed in the first place?

Because it's an expression, and you're allowed to execute expressions.

To put it a bit more clearly, you're allowed to evaluate
an expression and ignore the result.

But if it's an expression where it's expecting a statement and it's not a call, then it's probably a bug.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to