threading support in python

Jean-Paul Calderone exarkun at divmod.com
Tue Sep 5 21:35:20 EDT 2006


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



More information about the Python-list mailing list