Re: getting umask without changing it

2006-06-16 Thread Faik Uygur
Cuma 16 Haziran 2006 13:41 tarihinde, Fredrik Lundh şunları yazmıştı: > afaik, there's no atomic API for this.  just a unified get/set function: > >     http://www.opengroup.org/pubs/online/7908799/xsh/umask.html Oops. :( Thanks for the help. Regards, - Faik -- http://mail.python.org/mailman/li

Re: getting umask without changing it

2006-06-16 Thread Fredrik Lundh
Faik Uygur wrote: > This is not atomic. At this point i changed all the running python threads' > umask and i don't want to change current umask. I just want to get it. afaik, there's no atomic API for this. just a unified get/set function: http://www.opengroup.org/pubs/online/7908799/xsh/um

Re: getting umask without changing it

2006-06-16 Thread Faik Uygur
Cuma 16 Haziran 2006 12:48 tarihinde, Fredrik Lundh şunları yazmıştı: > Faik Uygur wrote: > > Is there a python way of getting the current umask without changing it? > > os.umask changes it, and i dont want to use os.system("umask") > > just call os.umask twice: > current_mask = os.umask(0) T

Re: getting umask without changing it

2006-06-16 Thread Fredrik Lundh
Faik Uygur wrote: > Is there a python way of getting the current umask without changing it? > os.umask changes it, and i dont want to use os.system("umask") just call os.umask twice: current_mask = os.umask(0) os.umask(current_mask) -- http://mail.python.org/mailman/listinfo/pytho

getting umask without changing it

2006-06-16 Thread Faik Uygur
Is there a python way of getting the current umask without changing it? os.umask changes it, and i dont want to use os.system("umask") - Faik -- http://mail.python.org/mailman/listinfo/python-list