Re: [Python-Dev] Symbolic errno values in error messages

May 19, 2008
7:48 p.m.
"Guido van Rossum" <guido@python.org> writes:
Have you considered whether this works on all platforms? (E.g. Windows, or embedded non-Unix-based.)
Yes but I guess I didn't comment it properly. The line printed_errno = errno_str ? errno_str : self->myerrno; ensures that we gracefully fallback to numeric errno when here is no symbolic value available. The code is only invoked if there is an errno value, which takes care of most non-Unix platforms. -- Yannick Gingras
6214
Age (days ago)
6214
Last active (days ago)
0 comments
1 participants
participants (1)
-
Yannick Gingras