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/135798.html below:

[Python-Dev] Multiline with statement line continuation

[Python-Dev] Multiline with statement line continuation [Python-Dev] Multiline with statement line continuationGeorg Brandl g.brandl at gmx.net
Fri Aug 15 23:34:32 CEST 2014
On 08/15/2014 11:08 PM, Ethan Furman wrote:
> On 08/13/2014 10:32 AM, Steven D'Aprano wrote:
>>
>> (2) Also note that *this is already the case*, since tuples are made by
>> the commas, not the parentheses. E.g. this succeeds:
>>
>> # Not a tuple, actually two context managers.
>> with open("/tmp/foo"), open("/tmp/bar", "w"):
>>     pass
> 
> Thanks for proving my point!  A comma, and yet we did *not* get a tuple from it.

Clearly the rule is that the comma makes the tuple, except when it doesn't :)

Georg

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