Ilpo Nyyssönen wrote:
> Nicolas Fleury <[EMAIL PROTECTED]> writes:
> > def foo():
> >     with locking(someMutex)
> >     with opening(readFilename) as input
> >     with opening(writeFilename) as output
> >     ...
>
> How about this instead:
>
> with locking(mutex), opening(readfile) as input:
>     ...

+1, and add PEP-328-like parentheses for multiline.

  Oren

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to