[issue4928] Problem with tempfile.NamedTemporaryFile

2016-02-20 Thread Eryk Sun
Eryk Sun added the comment: Maybe a note could be added to suggest using a SIGTERM signal handler (e.g. the handler could raise a SIGTERM exception): POSIX: The file will not be deleted if the process is terminated abruptly by a signal. A process may register a SIGTERM handler to ensure that t

[issue4928] Problem with tempfile.NamedTemporaryFile

2016-02-19 Thread Martin Panter
Martin Panter added the comment: I am surprised at the report that Red Hat Linux automatically removed the file. What system calls are involved? On my Arch Linux setup with current 3.6 code it leaves the file behind (same as the Solaris report). However the the Windows version does automatical

[issue4928] Problem with tempfile.NamedTemporaryFile

2014-05-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue4928] Problem with tempfile.NamedTemporaryFile

2014-05-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue4928] Problem with tempfile.NamedTemporaryFile

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, my bad. The implementation already has a __del__ method. -- ___ Python tracker ___ ___ Python-bu

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Where does it say that they are supposed to be deleted when the process > is > killed, Well, it is more of a "natural expectation" I guess. > and what mechanism specifically is supposed to actually perform the > deletion? That's not the kind of questions u

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I can't think of any way that you might be able to implement the behavior > being requested here. Thanks for the confirmation; lowering the priority then. It would, of course, be possible to improve quality by registering an atexit handler. Which, of cour

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I can't think of any way that you might be able to implement the behavior being requested here. Instead, if you don't want to leave files lying around, use TemporaryFile instead of NamedTemporaryFile. Perhaps the documentation for NamedTemporary file co

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Unfortunately, I typically don't have time to consider the priority of issues. However, in the specific case, I also fail to see the bug. Where does it say that they are supposed to be deleted when the process is killed, and what mechanism specifically is su

[issue4928] Problem with tempfile.NamedTemporaryFile

2010-07-07 Thread Stefan Krah
Changes by Stefan Krah : -- title: Problem with tempfile.NamedTemporaryFile on Solaris 10 -> Problem with tempfile.NamedTemporaryFile ___ Python tracker ___ _

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2010-07-07 Thread Stefan Krah
Stefan Krah added the comment: I can reproduce this on Ubuntu with Python 2.7 and 3.2. -- nosy: +skrah ___ Python tracker ___ ___ Pyth

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2010-07-07 Thread Mark Lawrence
Mark Lawrence added the comment: Shouldn't this get looked at as it's high priority, albeit over a year old? -- nosy: +BreamoreBoy versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker __

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Martin, do you have time to confirm this problem? Failure of (Named)TemporaryFile to remove the file on shutdown should be considered a serious issue. -- nosy: +loewis, pitrou ___ Python tracker

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-01-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: -> high stage: -> test needed versions: +Python 2.6, Python 2.7 -Python 2.5 ___ Python tracker ___ _

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-01-13 Thread Richard Philips
Richard Philips added the comment: [Replaces msg 79727] On Solaris 10 (Solaris 10 5/08 s10x_u5wos_10 X86), with python 2.5 (Python 2.5.2 (r252:60911, Sep 8 2008, 16:53:36) [C] on sunos5), tempfile.NamedTemporaryFile creates - as advertised - a temporary file. After closing this file object

[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-01-13 Thread Richard Philips
New submission from Richard Philips : On Solaris 10 (Solaris 10 5/08 s10x_u5wos_10 X86), with python 2.5 (Python 2.5.2 (r252:60911, Sep 8 2008, 16:53:36) [C] on sunos5), tempfile.NamedTemporaryFile creates - as advertised - a temporary file. After closing this file object (e.g. by exiting the