[Python-Dev] Backporting tempfile.NamedTemporaryFile context management fix
Guido van Rossum
guido at python.org
Sun Feb 10 17:29:34 CET 2008
Assuming the fix isn't going to break other things, I'd say now is the
time, unless Martin says otherwise. Waiting until after 2.5.2 doesn't
make a lot of sense -- either it is a backportable fix, or it isn't.
If it is backportable, it can go in as long as the 2.5.2 code freeze
isn't in effect.
On Feb 10, 2008 4:53 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> In 2.5, tempfile.NamedTemporaryFile passes requests for __enter__ and
> __exit__ through to the underlying file object, which ends up breaking
> in a couple of different ways (by a fortuitous coincidence, it actually
> works in most respects on Windows, so tempfile.TemporaryFile will mostly
> do the right thing in with statements no matter what platform you are on).
>
> This has been fixed on the trunk in response to issue 2021, but I'm not
> sure of the current status of the 2.5 maintenance branch. Should I wait
> until after 2.5.2 is released before backporting? Or backport it now?
>
> Cheers,
> Nick.
>
> --
> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
> ---------------------------------------------------------------
> http://www.boredomandlaziness.org
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list