On 05 Sep 2006 17:31:11 -0700, Paul Rubin <"http://phr.cx"@nospam.invalid> 
wrote:
>
>  def func(filename):
>     with open(filename) as f:
>        do_something_with(f)
>     # f definitely gets closed when the "with" block exits
>
>which more explicitly shows the semantics actually desired.  Not that
>"huge" a benefit as far as I can tell.  Lisp programmers have gotten
>along fine without it for 40+ years...

Uh yea.  No lisp programmer has ever written a with-* function... ever.

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

Reply via email to