>>> 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