47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
From: tismer at appliedbiometrics.com (Christian Tismer)
|
|
Date: Sat, 24 Apr 1999 15:10:48 GMT
|
|
Subject: wrapped around the axle on regexpressions and file searching
|
|
References: <1287155028-45807148@hypernet.com>
|
|
Message-ID: <3721DEF8.FBF889D4@appliedbiometrics.com>
|
|
Content-Length: 1340
|
|
X-UID: 904
|
|
|
|
|
|
Gordon McMillan wrote:
|
|
>
|
|
> msrisney writes:
|
|
|
|
...
|
|
|
|
> At any rate, os.path.exists('e:/') is an effective way of finding out
|
|
> if e: exists. Though specifying 'a:/' will pop up one of those lovely
|
|
> Abort/Retry/Fail dialogs if nothing is in the drive.
|
|
|
|
Not always. On my Win98 box, the floppy drive brushes teeth for
|
|
a second, and then I get back *one* from os.path.exists.
|
|
This is really bad, since I didn't insert a floppy.
|
|
|
|
> in-nearly-20-years-I-still-haven't-figured-out-the-difference-between
|
|
> -Abort-and-Fail-ly y'rs
|
|
|
|
Some of my early dos tools aborted immediately from the DOS
|
|
function when I hit abort, while they caught the error and
|
|
some were able to continue, when I answered with "Fail".
|
|
So I think the designed intent was to give the user a chance
|
|
to decide wether the program should shut down, or an internal
|
|
error handler should get a chance.
|
|
|
|
Anyway no good solution - ciao - chris
|
|
|
|
--
|
|
Christian Tismer :^) <mailto:tismer at appliedbiometrics.com>
|
|
Applied Biometrics GmbH : Have a break! Take a ride on Python's
|
|
Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net
|
|
10553 Berlin : PGP key -> http://wwwkeys.pgp.net
|
|
PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF
|
|
we're tired of banana software - shipped green, ripens at home
|
|
|
|
|
|
|
|
|