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
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