Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment: If you mean "renaming the temporary file while it is still opened" I see 2 reasons for not doing that:
- On Windows this is not possible since files remains locked as long as you close() them. - open().name and tempfile.NamedTemporaryFile().name attributes are not reliable since they remains the same even after the file renaming. >>> import os >>> f = open('1', 'w') >>> os.rename('1', '2') >>> f.name 1 ---------- nosy: +giampaolo.rodola _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1390197> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com