mkstemp vs. tmpnam , tempnam

Neil Schemenauer nas at python.ca
Fri Sep 21 16:46:15 EDT 2001


Janet wrote:
> I am running it on Linux, Mandrake 8.0.  Both tmpnam and tempnam are
> considered unsafe.  Is there a patch for this problem or I can just
> modified the Modules/posixmodule.c to use msktemp instead?

Don't worry about it.  Python doesn't use those functions unless you do.
If you're really paranoid you could remove those functions from
posixmodule.

  Neil




More information about the Python-list mailing list