Is errno.ENOENT the right value?
Erik Max Francis
max at alcyone.com
Mon May 12 23:04:22 EDT 2003
Mike Thompson wrote:
> Traceback (most recent call last):
> File "<stdin>", line 2, in ?
> WindowsError: [Errno 3] The system cannot find the path specified:
> 'c:\\path/*.*'
>
> My question is: why does 'error.errno' have the value 3? Given that
> the path
> does not exist, I had expect it to have the value errno.ENOENT (2), in
> which
> case no exception would have been raised?
I would guess it's because it's a WindowsError, not a OSError. So that
3 is some Windows-specific value, not an errno value.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ I'm the woman whose / Three wishes came true
\__/ Lamya
Fauxident / http://www.alcyone.com/pyos/fauxident/
A "faux" ident daemon in Python.
More information about the Python-list
mailing list