checking filespec for readability

lynx a at b.c
Sun Aug 20 17:06:48 EDT 2000


what's the simplest Python equivalent of Perl's -r operator?
should i just stick to my workaround of open()ing it for reading
and seeing if that throws anything?

(more generally, what's the best replacement for each of Perl's
filespec-checking operators? os.path methods and stat() magic?)

 - lynx, writing bomb-defuser code for cgi scripts



More information about the Python-list mailing list