Guido van Rossum wrote: > [Phillip J. Eby] > >>Although I'd personally prefer a no-keyword approach: >> >> synchronized(self): >> with_file("foo") as f: >> # etc. > > > I'd like that too, but it was shot down at least once. Maybe we can > resurrect it? > > opening("foo") as f: > # etc. > > is just a beauty! +1 Certainly my favorite because it's direct and easy on the eyes. Second would be:: in opening("foo") as f: # etc. because I can see Aahz's point about introducing the block with a keyword instead of relying on the ":" punctuation and subsequent indentation of the block for skimming code. -Shane Holloway
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4