[issue2717] tempfile.mkstempf

2008-05-07 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: The conclusion on python-dev is that NamedTemporaryFile is an adequate replacement for mktemp, so this isn't needed. -- resolution: -> rejected status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2717] tempfile.mkstempf

2008-04-30 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>: -- nosy: +giampaolo.rodola __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2717] tempfile.mkstempf

2008-04-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: The delete flag on NamedTemporaryFile is new for 2.6, so it isn't surprising people aren't familiar with it. The other advantage of using NamedTemporaryFile is that its name attribute is set correctly, which isn't the case when using mkstemp dir

[issue2717] tempfile.mkstempf

2008-04-29 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Nick> What does this offer over using NamedTemporaryFile(delete=False)? Nothing I suppose. I wasn't aware of the similarity of the two (I always use mkstemp()) or the delete arg to NamedTemporaryFile, and assumed Guido's complaint about mkst

[issue2717] tempfile.mkstempf

2008-04-29 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: What does this offer over using NamedTemporaryFile(delete=False)? -- nosy: +ncoghlan __ Tracker <[EMAIL PROTECTED]> __ _

[issue2717] tempfile.mkstempf

2008-04-29 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10136/mkstempf.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue2717] tempfile.mkstempf

2008-04-29 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Thanks. New patch attached. Added file: http://bugs.python.org/file10137/mkstempf.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2717] tempfile.mkstempf

2008-04-29 Thread André Malo
André Malo <[EMAIL PROTECTED]> added the comment: It should catch OSError on fdopen, close fd and reraise, I think. -- nosy: +ndparker __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2717] tempfile.mkstempf

2008-04-28 Thread Skip Montanaro
New submission from Skip Montanaro <[EMAIL PROTECTED]>: On python-dev Guido lamented the fact that tempfile.mkstemp() returns a file descriptor instead of a file object. This patch adds tempfile.mkstempf to remedy that. -- components: Library (Lib) files: mkstempf.diff keywords: easy, p