GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] Warn about mktemp once again?
  • [Python-Dev] Warn about mktemp once again?
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Warn about mktemp once again?

[Python-Dev] Warn about mktemp once again?

Bill Janssen janssen at parc.com
Wed May 7 17:36:55 CEST 2008

  • Previous message: [Python-Dev] Warn about mktemp once again?
  • Next message: [Python-Dev] Warn about mktemp once again?
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

> On win32 it will usually (but not always) provide a file name in a directory
> writeable only by the current user.

OS X 10.5 also does this.

>>> import tempfile
>>> tempfile.mktemp()
'/var/folders/Ru/RuapMUan2RWWJ++1YwBnRU++0T6/-Tmp-/tmpjjkKha'
>>> os.system("ls -dl /var/folders/Ru/RuapMUan2RWWJ++1YwBnRU++0T6/-Tmp-")
drwx------  2 wjanssen  100  68 May  7 08:34 /var/folders/Ru/RuapMUan2RWWJ++1YwBnRU++0T6/-Tmp-
0
>>> 

Bill

  • Previous message: [Python-Dev] Warn about mktemp once again?
  • Next message: [Python-Dev] Warn about mktemp once again?
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.