current umask
Stian Husemoen
stianh at ifi.uio.no
Wed Oct 25 10:05:36 EDT 2000
More information about the Python-list mailing list
Wed Oct 25 10:05:36 EDT 2000
- Previous message (by thread): Newbie question: WinNT Python 1.5.2 - import seems not to work the way I expect
- Next message (by thread): current umask
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tino Lange wrote: >how can I determine the "current" umask >without touching it? Since os.umask() returns the previous umask, you could do: def getumask(): umask = os.umask(0777) os.umask(umask) return umask That will not get the umask without 'touching' it, but it will be left unchanged. -- Stian Husemoen <stianh>
- Previous message (by thread): Newbie question: WinNT Python 1.5.2 - import seems not to work the way I expect
- Next message (by thread): current umask
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list