tempfile broken in 2.3.4?
marco
marco at reimeika.ca
Thu Jun 10 21:17:43 EDT 2004
Hi,
It's probably me, but I'm really not sure what I'm doing wrong:
BEFORE:
bash-2.05b$ python2.2
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tempfile
>>> tempfile.mktemp()
'/tmp/@20219.0'
>>> tempfile.template = 'ham'
>>> tempfile.mktemp()
'/tmp/ham1'
>>>
AFTER:
bash-2.05b$ python2.3
Python 2.3.4 (#1, Jun 10 2004, 19:23:10)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tempfile
>>> tempfile.mktemp()
'/tmp/tmpReDZMK'
>>> tempfile.template = 'ham'
>>> tempfile.mktemp()
'/tmp/tmp6PcHuc'
>>>
Huh?
--
marco at reimeika.ca
Gunnm: Broken Angel http://amv.reimeika.ca
http://reimeika.ca/ http://photo.reimeika.ca
More information about the Python-list
mailing list