tempfile problem on win98

Fredrik Lundh fredrik at pythonware.com
Fri Mar 23 11:24:23 EST 2001


Steven Adams wrote:
> is there a way to have a suffix included in the calculation of the
> filename instead of the prefix?

http://www.python.org/doc/current/lib/module-tempfile.html

    mktemp([suffix])

    Return a unique temporary filename. This is an absolute
    pathname of a file that does not exist at the time the call
    is made. No two calls will return the same filename.

    suffix, if provided, is used as the last part of the generated
    file name. This can be used to provide a filename extension
    or other identifying information that may be useful on some
    platforms.

worth trying...

Cheers /F





More information about the Python-list mailing list