[Patches] [ python-Patches-635656 ] os.tempnam behavior in Windows

noreply@sourceforge.net noreply@sourceforge.net
Fri, 08 Nov 2002 11:34:52 -0800


Patches item #635656, was opened at 2002-11-08 16:34
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=635656&group_id=5470

Category: Modules
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Roberto Lublinerman (rluble)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.tempnam behavior in Windows

Initial Comment:
os.tempnam behaviour under windows does no agree 
with the documentation.

Under Windows Temporary location takes precedence 
over specified directory, so tempnam("mydir") returns a 
filename on the temporary location instead of "mydir"

Reason: tempnam is implemented under Windows as a 
call to _tempname which behaves as described above 
acording to MS documentation.

Change: use GetTempFileName to get the desired 
behaviour.

File Modified: Modules/posixmodule.c

Error detected in: python v2.2
Corrected for Python v: 2.3

File revision: 2.271

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=635656&group_id=5470