A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-August/135808.html below:

[Python-Dev] Multiline with statement line continuation

[Python-Dev] Multiline with statement line continuation [Python-Dev] Multiline with statement line continuationChris Angelico rosuav at gmail.com
Sat Aug 16 23:42:25 CEST 2014
On Sat, Aug 16, 2014 at 10:47 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
>
> You might be able to have it bothways. You could have:
>
>    with (open(name) for name in os.listdir("config")) as files:

But that's not a tuple, it's a generator. Should generators be context
managers? Is anyone seriously suggesting this? I don't think so. Is
this solutions looking for problems?

ChrisA
More information about the Python-Dev mailing list

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