[Python-Dev] Symbolic errno values in error messages

Nick Coghlan ncoghlan at gmail.com
Fri May 16 16:13:45 CEST 2008


Yannick Gingras wrote:
> 1) Should OSError.__str__() print the symbolic name of errno?

+1 (assuming the performance hit for doing so is incurred only when the 
exception is actually printed)

> 2) Where can I find the symbolic name in C?

Modules/errnomodule.c

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list