Re:Python: Uncovering the Overlooked Core Functionalities
by zelphirkalt on Wednesday July 26, 2023 @07:33AM
(#36875970)
A perhaps more appropriate name for your 'log' would be 'peek'. Log reminds of logging, which usually does not return a value, but writes to stdout or a file or similar.
Naming intermediates is fine (and encouraged) if there are actually meaningful names to be given. But sometimes the expression itself is the shortest meaningful name for the expression.
Re backslashes, you can also just wrap the expression in parentheses.