Using revised tempfile module

John J. Lee jjl at pobox.com
Sat Dec 27 17:45:23 EST 2003


"Edward C. Jones" <edcjones at erols.com> writes:

> #! /usr/bin/env python
> 
> import os, tempfile
> 
> # I have written code like this several times. It uses the deprecated
> # function tempfile.mktemp. How do I write this with the new tempfile
> # functions?

You read the tempfile.mkstemp documentation.


John




More information about the Python-list mailing list