Re: os.lstat : proper way to do this

2008-12-12 Thread MRAB
m1k...@gmail.com wrote: I'm converting from Perl to Python, so I'm learning the basics - please be gentle! :) In Perl, I can lstat($file) whether $file exists or not: lstat($file); unless (-e _) { print STDERR "$file: No such file or directory\n"; } unless (-l _) { print STDERR "$file: N

Re: os.lstat : proper way to do this

2008-12-12 Thread Benjamin Kaplan
On Fri, Dec 12, 2008 at 6:06 PM, wrote: > I'm converting from Perl to Python, so I'm learning the basics - > please be gentle! :) > > In Perl, I can lstat($file) whether $file exists or not: > lstat($file); > unless (-e _) { >print STDERR "$file: No such file or directory\n"; > } > unless (-l