"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