os.tempnam() ignores dir

Randall Hopper aa8vb at yahoo.com
Mon Aug 12 14:22:28 EDT 2002


    >>> print os.tempnam( '/home/rhh', 'prefix' )
    /usr/tmp/prefiCAAa0MMvw

Is this a bug?  I don't see any caveat in the docs about Python ignoring
the dir argument.

Thanks,

Randall

BTW: This is on Python 2.1




More information about the Python-list mailing list