Python equivalent of _tempnam?
Graeme Mathieson
mathie at wossname.org.uk
Wed Apr 2 09:11:57 EST 2003
In <3e8ab45b$1 at mail.hmgcc.gov.uk>,
on Wed, 2 Apr 2003 10:58:51 +0100, "Richard" <richardd at hmgcc.gov.uk> writes:
> I have been told that a way of doing this in C is by using _tempnam( ).
> However I want to write this in Python, so is there an equivalent function?
os.tempnam() by any chance? Though, as the documentation[1] points out,
you'd be better off using os.tmpfile() instead.
Footnotes:
[1] http://www.python.org/doc/current/lib/os-file-dir.html
--
Right now, there are scr1pt k1dd13s plotting to DDoS my network, my co-lo
server is not responding to pings and the people that I IRC with may be
involved in both. I'm sysadmin Graeme Mathieson and this is the longest
day of my life. http://www.wossname.org.uk/
More information about the Python-list
mailing list