[Python-Dev] UserString

Guido van Rossum gvanrossum at gmail.com
Tue Feb 22 17:16:52 CET 2005

> Really?  I do this kind of thing all the time:
> import os
> import errno
> try:
>     os.makedirs(dn)
> except OSError, e:
>     if e.errno <> errno.EEXIST:
>         raise

You have a lot more faith in the errno module than I do. Are you sure
the same error codes work on all platforms where Python works? It's
also not exactly readable (except for old Unix hacks).

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list