[Python-Dev] Comments of the PEP 3151

Nick Coghlan ncoghlan at gmail.com
Tue Jul 26 06:18:58 CEST 2011


On Tue, Jul 26, 2011 at 1:47 PM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> Eh, doesn't it bother anybody that it's not an error, but a user
> action?

Nope, doesn't bother me in the slightest. It's an error number code,
just like all the others. Several other error numbers may or may not
be errors too, depending on context. Rather than quibbling about that
part of the naming scheme it's easier to say that the call failing to
complete successfully is an error by default, but an application may
choose to interpret some cases as not really being errors, since
there's a defined response (most obvious case: a file or directory
already existing or not existing often isn't an error from the
application's point of view, it's just the application ensuring that a
particular configuration exists on the file system in an idempotent
fashion).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list