Re: [Python-ideas] Python-ideas Digest, Vol 140, Issue 169

26 Jul
2018
26 Jul
'18
7:32 p.m.
I several times wished I could have had a reference to the block of code in a `with` clause.
Could you abstractly describe a real-world example of this? I’d like to hear your use case.
The example for sorted is also kinda twisted.
It is, it’s probably a counterexample on how to use it.
I forgot to mention, could it be possible to only treat do as a keyword when it’s used in an as-do expression? So, do remains a legal variable name, and do is only interpreted as a keyword when it’s in an as-do expression. I believe this is possible using the Python grammar.
1706
Age (days ago)
1706
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Lu