os.tempnam() ignores dir

Jarkko Torppa torppa at staff.megabaud.fi
Mon Aug 12 16:48:38 EDT 2002

In article <mailman.1029176601.30107.python-list at python.org>, Randall Hopper wrote:
>     >>> 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.

If it is bug it is most propably on your systems c-library, python
library just parses arguments and calls tempnam() on posix and
_tempnam() win32.

Jarkko Torppa, Elisa Internet

More information about the Python-list mailing list