File Permissions

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Mar 10 15:49:57 CET 2006


Sebastjan Trepca enlightened us with:
> Those constants are in stat module so add "import stat" before the
> program.

Yeah, but just opening the file is more Pythonic than first checking
if it can be opened in the first place.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list