[Python-Dev] Multiline 'with' statement line continuation

Ben Finney ben+python at benfinney.id.au
Tue Aug 12 05:41:20 CEST 2014


Ben Hoyt <benhoyt at gmail.com> writes:

> So -- although I'm not arguing for it here -- you'd be turning an code
> (a runtime AttributeError) into valid syntax.

Exactly what I'd want to avoid, especially because it *looks* like a
tuple. There are IMO too many pieces of code that look confusingly
similar to tuples but actually mean something else.

-- 
 \     “I have an answering machine in my car. It says, ‘I'm home now. |
  `\  But leave a message and I'll call when I'm out.’” —Steven Wright |
_o__)                                                                  |
Ben Finney



More information about the Python-Dev mailing list