Jason R. Coombs <jar...@jaraco.com> added the comment:

I agree. If the primary usage of the class does not work well on Windows, 
developers will continue to write code using the primary usage because it works 
on their unix system, and it will continue to cause failures when run on 
windows. Because Python should run cross-platform, I consider this a bug in the 
implementation and would prefer it be adapted such that the primary use case 
works well on all major platforms.

If there is a separate class method for different behavior, it should be for 
the specialized behavior, not for the preferred, portable behavior.

I recognize there are backward-compatibility issues here, so maybe it's 
necessary to deprecate NamedTemporaryFile in favor of a replacement.

----------
title: tempfile.NamedTemporaryFile not particularly useful on Windows -> 
tempfile.NamedTemporaryFile not particularly useful on Windows

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14243>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to