[prev in list] [next in list] [prev in thread] [next in thread]
List: python-bugs-list
Subject: [issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows
From: Daniel Lenski <report () bugs ! python ! org>
Date: 2012-06-30 23:01:53
Message-ID: CAOw_LSGBiSkO2aDHbwoe6AGBUWxOcaPe9FkrCJx23Rtm2gG3Yw () mail ! gmail ! com
[Download RAW message or body]
Daniel Lenski <dlenski@gmail.com> added the comment:
Davide, the @contextlib.contextmanager decorator effectively wraps the
yield statement in the necessary glue so that everything prior to the yield
statement occurs in the __enter__() method of the contextmanager, while
everything subsequent occurs in the __exit__() method.
On Sat, Jun 30, 2012 at 1:46 AM, Davide Rizzo <report@bugs.python.org>wrote:
>
> Davide Rizzo <sorcio@gmail.com> added the comment:
>
> Daniel, Nick, shouldn't the context manager yield f within a with block?
>
> ----------
> nosy: +davide.rizzo
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue14243>
> _______________________________________
>
----------
title: tempfile.NamedTemporaryFile not particularly useful on Windows -> \
tempfile.NamedTemporaryFile not particularly useful on Windows
_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14243>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-bugs-list%40marc.info
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic