Robin Becker wrote:
> Ilpo Nyyssönen wrote:
>>
>> with locking(mutex), opening(readfile) as input:
>>     ...
> 
> with EXPR as x:
>      BLOCK
> 
> EXPR can be a tuple so the above would be ambiguous.

I don't think EXPR can be a tuple; the result of evaluating EXPR must have 
__enter__() and __exit__() methods. *x* can be a tuple.

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

Reply via email to