[Python-Dev] Warn about mktemp once again? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 7 00:23:07 CEST 2008
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tristan Seligmann wrote:
The correct way to do this is to create a temporary directory, and then generate a filename underneath that directory to use.
Yes, otherwise you can get bitten by the race condition that's the reason for mktemp being deprecated.
-- Greg
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]