[issue13171] Bug in tempfile module

2011-10-14 Thread Alexander Steppke
Alexander Steppke added the comment: Hi David, I followed your suggestion and tried to reproduce the problem without the tempfile module. It turns out that is indeed an underlying issue. I am not sure what the root cause is but now this is even a bigger problem: read() returns information fr

[issue13171] Bug in tempfile module

2011-10-13 Thread R. David Murray
R. David Murray added the comment: I wonder if it is a bug in Windows? Have you tried similar experiments with regular files? tempfile is really just about *where* the files are located (and what happens when they are closed), not about their fundamental nature as OS file objects. (I could

[issue13171] Bug in tempfile module

2011-10-13 Thread Alexander Steppke
New submission from Alexander Steppke : The tempfile module shows strange behavior under certain conditions. This might lead to data leaking or other problems. The test session looks as follows: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "