
Feb. 7, 2021
2:02 a.m.
On 2021-02-07 00:57, Jonathan Crall wrote:
[snip]
To be clear, in the proposed syntax:
if [condition] with [obj]: [code]
Would behave exactly as:
if [condition]: with [obj]: [code]
Is there any chance that this conditional context manager syntax might be considered? Does anyone but myself think this might be a good idea?
-1. It's not that much shorter. You wouldn't be saving much typing or space.